Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What about using normal RAF and slowing the animation itself down to match the original GIF as best as possible?


I think that’s what they were suggesting with

> If I were doing it all over again, I'd probably use RAF with window.performance

Since RAF doesn’t give a guaranteed framerate you’d need to use metrics from window.performance to make the animation framerate-independent, or people on different browsers or devices could see the animation at different speeds.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: