12409 shaares
291 private links
291 private links
You might think that the JS version is slower [than CSS, but it's not for the right reason]
But there’s one significant difference: the JavaScript version runs on the main thread, along with everything else happening in our application. CSS transitions and keyframe animations run on a separate thread, so they aren’t disrupted when stuff happens in JavaScript.
Motion can create more smooth APIs but GSAP is more powerful.