by osrec · 8y ago · 0 comments
On one hand I understand why a transition on `left` isn't hardware accelerated but a `translate3d` is, but on the other it seems crazy that we expect people to think and know this kind of stuff when they just want to do something very simple.
You do have to be intentional to get good animation performance on the web, but it's amazing that when you are, you can make transitions that perform better than the ones that come with the phone.
This is because you're setting the position of an element that has a transition with a curve. In effect it's restarting its animation every time you move the mouse, causing it reset its velocity.
Canvas fingerprinting wouldn't be as effective if it did