Keyframe
UI DesignWhat 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.
Related terms
View all UI Design terms →Transition
A transition is motion that moves an element smoothly from one state to another , such as a menu opening, a button changing color on hover…
Easing
Easing is the way an animation changes speed over time . Instead of moving at a constant rate, an eased element speeds up or slows down…
Lottie
Lottie is an open file format for vector animations that plays in apps and on the web. Animations are stored as JSON, stay sharp at any…
Rive
Rive is a design and animation tool for interactive graphics that run in apps, websites and games. Designers build vector graphics…
Motion Design Principles
Motion design principles are guidelines for using animation in an interface so it helps users instead of distracting them. They cover why…
Prototype
A Prototype is a preliminary version of a product that simulates the final user experience. It ranges from simple paper sketches to…
