Performance
Animate only transform and opacity where possible — they run on the GPU and do not trigger layout. The generated code also disables the animation for visitors who enable “reduce motion” in their system settings.
Frequently asked questions
How do I trigger it on scroll?
Add the class with an IntersectionObserver when the element enters the viewport.
What does "both" mean?
The element keeps the first keyframe before the delay and the last one after the animation ends.
Can I combine animations?
Yes, separate several animations with commas.

