Back to CSS

CSS Tutorial

Animations

Create keyframe-based motion and visual effects.

CSS animations can run without JavaScript.

Use animations carefully so they support the interface instead of distracting users.

css
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.panel {
  animation: fadeIn 300ms ease;
}