2 ms·
^ this! I've seen so many jquery libraries used on sites to get a quick fancy animation, but then it used something like: setTimeout(() => { element.height +=
by hknd 8y ago
^ this!
I've seen so many jquery libraries used on sites to get a quick fancy animation, but then it used something like:
setTimeout(() => { element.height += 2; }, 50)
Which literally brings a 60+fps page to <5fps on a high-end machine.