On this page
animation
Prev: `transition` | Up: motion | Next: `will-change`
Rel: motion, Custom Properties & Animation Guide
Ref: MDN Web Docs — animation
Tags: #public #web #css #properties #motion #tier/standard
Syntax & Overview
animation: fade-up 200ms ease-out both;
Runs keyframe animations defined via @keyframes.
- Initial:
none| Inherited: No | Animatable: No
Notes & Best Practices
- Always respect
prefers-reduced-motion: Animate only compositor-friendly properties (transform,opacity) to stay at 60–120fps.
Example
@keyframes pulse { 50% { opacity: 0.6; } }
.skeleton { animation: pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
Linked from
Related notes
- tuts/css/properties/motion/transition Linked here; links to this page; shared tags: #css, #motion, #properties, #tier, #web
- tuts/css/properties/motion/will-change Linked here; links to this page; shared tags: #css, #motion, #properties, #tier, #web
- tuts/css/properties/motion Linked here; links to this page; shared tags: #css, #motion, #properties, #web
- tuts/css/properties/custom_properties_and_animation Linked here; shared tags: #css, #properties, #web
- tuts/css/properties/motion/opacity shared tags: #css, #motion, #properties, #tier, #web
- tuts/css/properties/motion/transform shared tags: #css, #motion, #properties, #tier, #web
- tuts/css/properties/box_model/aspect-ratio shared tags: #css, #properties, #tier, #web
- tuts/css/properties/box_model/box-sizing shared tags: #css, #properties, #tier, #web
- tuts/css/properties/box_model/inline-size shared tags: #css, #properties, #tier, #web
- tuts/css/properties/box_model/margin shared tags: #css, #properties, #tier, #web