On this page
  1. animation
  2. Syntax & Overview
  3. Notes & Best Practices
  4. Example

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.

Notes & Best Practices

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