CSS vs JS Transitions
Choose between CSS keyframe transitions and JavaScript tick functions.
Two Modes
Custom transitions return either a css function (GPU) or a tick function (JS-driven per frame).
When to Use CSS
For transform, opacity, color — anything CSS can animate. CSS runs on the compositor for 60fps.