Comment

Comment by aphextron

>I was wondering why the animation was so stuttery and then I saw they are using setInterval for the animation...

setInterval isn't the problem. He's animating the CSS position (top, left), which triggers a full reflow and causes the stuttering. Always animate with translate3d, which is GPU accelerated.

parent aphextron 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton