CSS animation

Changing an element's styles smoothly over time using @keyframes and the animation property, without JavaScript.

In more detail

Animations can run on their own, loop and have several steps. For smoothness animate only transform and opacity, which the compositor handles, and respect prefers-reduced-motion.

Related terms

Taught in

References