how to add animation to countdown timer
Hello guys, I'm working on countdown slider, and I can easily make the simple version of it, but I get curious about the way to add animation to it. I want it to looks like in this video, but idk how to implement it. If you have any ideas it would be a great help for me!
Thanks in advance and have a nice day!
5 Replies
Sorry for first video, idk why it got cut
If its the number animation, you can put each digit in a separate Element and give that an in and out animation.
@daswolle I thought in the same way, but how to add such animation only do changing number inside setInterval?
Set the old number a class, that animates it out and the new one gets a class that animates in
Probably I'm not that good in programming, I don't understand how to do that🥲