3 ms·
There's a very simple fix I typically do when it comes to animations: animationCount = 0 animateElement(el) { el.animate({duration: BASE_DURATI
by jjcm 7mo ago
There's a very simple fix I typically do when it comes to animations:
animationCount = 0
animateElement(el) {
el.animate({duration: BASE_DURATION / animationCount})
animationCount++
}
(formula exagerated for simplicity)
Essentially, for any animation that gets repeated, it should decrease in duration over time. This makes things impactful when they're first being displayed, but they very quickly approach an extremely minimal state, making things feel snappy.