CSS: animation-timing-function

The animation-timing-function property controls how quickly an animation progresses between keyframes.

What you will learn

Basic example

.notice {
  animation: appear 400ms ease-out;
}

.spinner {
  animation: spin 1s linear infinite;
}

linear keeps a constant pace. ease starts and ends more gently. A timing function changes the pace, not the total duration.

Common mistakes