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

What's strange is that scrolling SVG can be quite smooth in browsers, at least in Chrome. The map library Leaflet, or instance, makes a point of panning the map with -webkit-transform: translate3d() and it animates very smoothly. I wonder why scrolling the whole window like this is worse?


Scrolling repaints the content (expensive)

Changing a translate3d does not repaint the content, it simply translates a GPU texture (damn near free)

Sadly desktop browsers haven't caught up to their mobile equivalents yet and still have brain dead scrolling.


Animation with SMIL and SVG is even more feature packed.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: