Small touches of motion make an interface feel responsive and alive: a button that eases into its hover color, a card that lifts slightly, a loading spinner that keeps turning. CSS can do all of this without JavaScript. Used with restraint, motion guides attention and gives feedback; used carelessly, it distracts, hurts performance, or makes some users feel unwell.
This module starts with transitions, the simplest form of CSS motion, which smoothly animate a property from one value to another when something changes, such as on hover. It then covers transforms — rotate, scale, translate, and skew — which are the building blocks of most effects, and moves on to keyframe animations for multi-step and looping motion. It closes with accessible motion design, including how to respect a user's reduced-motion preference.
Watch the lessons in order, then continue on to Modern CSS.
How to create smooth, natural animations with CSS transitions, including hover effects, controlling animation speed, and timing.
Shows how to use the transform property to rotate, scale, move, and skew elements, and how to combine multiple transforms for more advanced effects.
A beginner-friendly introduction to @keyframes and the animation properties, including name, duration, delay, iteration count, direction, timing function, and fill mode.
Three strategies for designing more accessible movement for people with vestibular disabilities, including prefers-reduced-motion techniques.