10931 shaares
387 private links
387 private links
To let the animation to the GPU in practice: will-change: transform.
will-change is a property that allows us to hint to the browser that we're going to animate the selected element, and that it should optimize for this case.
A lot of important notions about animations with the transition property!
There is a @media (prefers-reduced-motion: reduce) too.
👍