News for hackers. Stuff that matters.
Re:Living with a best-selling Indian phone for 10 days by untog on Friday July 13, 2018 @08:15PM (#17527904)
I've been surprised by how performant you can get with CSS transitions and a will-change property. But good grief is it difficult.

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.

Re:Living with a best-selling Indian phone for 10 days by bgirard on Saturday July 14, 2018 @01:35AM (#17528993)
That's was my intention when I proposed will-changed. I was trying to get the Firefox OS home screen slide transitions to be performant without hard coding it in the Gecko layout engine.
Re:Living with a best-selling Indian phone for 10 days by untog on Saturday July 14, 2018 @10:48AM (#17530534)
Thank you for proposing it! I was astonished by the difference when I used it.
Re:Living with a best-selling Indian phone for 10 days by osrec on Friday July 13, 2018 @08:23PM (#17527951)
I agree with you. Performant animations with JavaScript are generally painful. CSS helps, but can be limited. It can also be a bit fiddly, especially when you want to chain animations together. Perhaps the web animations API will solve this as it matures.