A
A
Alexander Konovalov2015-09-25 20:05:34
css
Alexander Konovalov, 2015-09-25 20:05:34

How to attach animation?

How to attach this animation:

//Функция для красивого отображения времени.
function animation(vibor,param) {
  vibor.html(param)
    .css({'marginTop':'-20px','opacity':'0'})
    .animate({'marginTop':'0px','opacity':'1'});
}

to my timer?
<div id="timer" class="winner1" style="color:#fff; font-weight:bold;"><span id="timer-1" class="timer-digit">0</span><span id="timer-2" class="timer-digit">2</span>:<span id="timer-3" class="timer-digit">0</span><span id="timer-4" class="timer-digit">0</span>
                                            </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Kizernis, 2015-09-26
@pashakiz

Why not add animation
in the counter code itself?
because if so,
it's not clear what to give in param...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question