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
RobyDobyDingo
RobyDobyDingoOP•3y ago
Sorry for first video, idk why it got cut
Wolle
Wolle•3y ago
If its the number animation, you can put each digit in a separate Element and give that an in and out animation.
RobyDobyDingo
RobyDobyDingoOP•3y ago
@daswolle I thought in the same way, but how to add such animation only do changing number inside setInterval?
Wolle
Wolle•3y ago
Set the old number a class, that animates it out and the new one gets a class that animates in
RobyDobyDingo
RobyDobyDingoOP•3y ago
Probably I'm not that good in programming, I don't understand how to do that🥲
Want results from more Discord servers?
Add your server