3 ms·
How do you make the "panning" so smooth? I really want to know what was done to get this kind of smoothness and performance in a web app.
by Kiro 13y ago
How do you make the "panning" so smooth?
I really want to know what was done to get this kind of smoothness and performance in a web app.
- geuis 13y agoDo you mean the vertical swiping? If so, it's smooth because there's nothing special going on. It's just the page being swiped up and down, i.e. native behavior.
- Kiro 13y agoI mean the horisontal swipe when you click an item. Are you using Android? The smoothness of this site is revolutionary compared to the lag you're normally used to.
- thekingshorses 13y agotransform: translate(0, 100%) or transform: translate3d(0, 100%, 0) for hardware acceleration. I have tested with both, and it works great. Trick is try not to do anything else when animating.
- rimantas 13y ago-webkit-transform: translate3d(). Hardware accelerated.