Login
From:
Muffin Man
(Uncensored)
subscribe
Using CSS animations instead of JavaScript timers
https://muffinman.io/blog/css-animations-instead-of-js-timers/
links
backlinks
Roast topics
Find topics
Find it!
What if I told you that we can make a timer without using setTimeout, setInterval or requestAnimationFrame? JavaScript is still necessary, but we can create the timer just by toggling some CSS classes.