Keyframe animation

noun

say it: “KEE-fraym an-ih-MAY-shun” /ˈkiːfreɪm ˌænɪˈmeɪʃən/

An animation written as a set of steps with @keyframes, saying what an element looks like at the start, the end and points in between. It plays by itself, with no hover or click needed.

What is a keyframe animation?

A keyframe animation describes steps of an animation with @keyframes, then plays it on an element with animation.

@keyframes pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}
.notification-dot { animation: pulse 1s infinite alternate; }

In a sentence

  • “A small keyframe animation makes the heart icon pulse twice when the page opens.”

Level: Journeyman · More CSS terms at this level

Updated