Skip to main content

Keyframe

UI Design

What is a Keyframe

A keyframe is a point in an animation that defines a specific state, such as the start or end of a movement. The software fills in the frames between keyframes, so animators only set the key moments and the motion happens in between.

How Keyframes work

  • Key moments: Each keyframe sets values like position, size, opacity or color
  • Timeline: Keyframes sit at points in time
  • Interpolation: Frames in between are calculated automatically
  • Easing: Controls how values change between keyframes

Keyframes in UI design

Motion tools such as After Effects and Rive animate with keyframes on a timeline. On the web, the CSS @keyframes rule defines steps in an animation, such as 0%, 50% and 100%, which gives more control than a simple transition.

Keyframe vs. Transition

A transition moves between two states, like a button's normal and hover look. A keyframe animation can have many steps, loop and play on its own, such as a loading animation or an animated illustration.

Frequently asked questions

What is a keyframe in animation?

A keyframe marks an important point in an animation, such as the start or end of a movement, with a set value for position, size or color. The software calculates the frames in between, a process called interpolation or tweening.

What is the difference between CSS keyframes and transitions?

A transition animates between two states, such as normal and hover. The @keyframes rule defines several steps in a sequence and can run on its own, loop or play in reverse.

Which design tools use keyframes?

After Effects, Rive and most motion tools use keyframes on a timeline. On the web, CSS @keyframes and JavaScript animation libraries use the same idea.