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.




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

Search: