CSS 3 · Positioning, effects and animation

Create an animation

Define keyframes and apply them.

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.card {
  animation: fade-in 0.3s ease-out;
}

Official CSS 3 documentation

More positioning, effects and animation commands

All positioning, effects and animation commands · CSS 3 cheatsheet

Was this page helpful?