Back to CSS Universe

foundation

CSS Animations + Keyframes

Author keyframes, iteration modes, and timing with live preview.

animationskeyframesvisualizer

Learning checklist

  • Timing functions & delays
  • Fill modes and directions
  • Animating transforms & opacity

Definition

Author keyframes, iteration modes, and timing with live preview.

Syntax

Timing functions & delays

Example

Use the visualizer below to apply these properties and see the result live.

Deep dive

Why this matters

Principles, mental models, and debugging clues tailored to the topic.

Visual intuition

Each property is paired with motion or color feedback so you build muscle memory, not just recall syntax.

Copy-ready CSS

Controls emit exact CSS you can copy. Use it as a starter token or paste into DevTools for instant validation.

Performance notes

Learn where reflow, repaint, or compositing occurs so you avoid jank and choose GPU-friendly paths.

Accessibility first

Focus-visible, reduced-motion, and contrast tips are woven into every lab to keep experiences inclusive.

Practice

Try recreating a UI card using this topic. Toggle between dark and light modes to validate token contrast and responsiveness.

Tip: use DevTools overlays (grid/flex) plus the copy CSS button.

Interactive Lab

Animation Studio

Control duration, easing, delay, and iteration. Watch the orb animate smoothly while the CSS updates live.

Iterations
Direction
@keyframes floaty { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(40px, -30px, 0) scale(1.05); } 100% { transform: translate3d(0, 0, 0) scale(1); } } .orb { animation: floaty 1.8s ease-in-out 0.1s infinite alternate; will-change: transform; }

Related topics

Keep exploring adjacent concepts.

foundation

Box Model

Visualize content, padding, border, and margin with live adjustments.

View page

foundation

Flexbox Visualizer

Interactive flex playground for axes, alignment, wrapping, and gaps.

View page

intermediate

Grid Visualizer

Design explicit and implicit grids with repeat(), minmax(), and auto-fit/auto-fill.

View page