Keyframes
ELI5 — The Vibe Check
Keyframes are like the storyboard for a CSS animation. You tell the browser 'at the start, be here; at the middle, be there; at the end, be somewhere else' and the browser fills in all the frames in between. You're basically a movie director now.
Real Talk
@keyframes defines named animation sequences with percentage-based or from/to waypoints. Each keyframe specifies CSS property values at that point in the animation timeline. The browser interpolates between keyframes to create smooth transitions.
Show Me The Code
@keyframes fadeSlideIn {
0% { opacity: 0; transform: translateY(20px); }
100% { opacity: 1; transform: translateY(0); }
}
When You'll Hear This
"Define the keyframes first, then apply them with the animation property" / "The loading spinner uses a simple rotate keyframe animation"
Related Terms
CSS Animations
CSS animations let you make things move, spin, fade, and bounce using only CSS — no JavaScript needed.
CSS Transform
CSS Transform lets you rotate, scale, skew, and move elements without messing up the page layout.
CSS Transitions
CSS transitions are the smooth operators of web design.