Answer the question
In order to leave comments, you need to log in
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'});
}
<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
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 questionAsk a Question
731 491 924 answers to any question