CSS animation Property Explained
What the CSS animation property does, with an example.
Published November 5, 2026
The CSS animation property applies a defined @keyframes animation sequence to an element.
Key points
- Check browser compatibility on a resource like caniuse.com if targeting older browsers
Example
animation: spin 2s linear infinite;