Animation
Animation is the presentation of changing visual states over time to create the appearance of motion or change.
Design for Developers
The use of changing visual states over time to communicate movement, activity, or interaction in an interface.
- How it is used
- Uses animation to guide interaction, communicate feedback and status, and add delight when appropriate.
- How deep it goes
- Develops purposes, touchpoint decisions, storyboard steps, and performance tradeoffs without providing implementation code.
- Examples
- Illustrates feedback with a shaking login form and loading status with spinners, skeleton content, and progress bars.
- What you can do after
- Practice/perform low-fidelity storyboarding and user testing to plan useful motion before coding.
Classic Game Programming on the NES: Make your own retro video game
Animation is the presentation of changing visual states over time to create motion or visual activity in a game.
- How it is used
- Adds visual activity to a space shooter’s enemies, background, explosions, and game-state presentation.
- How deep it goes
- Works through timed sprite-pattern cycling, NMI tile updates, palette swaps, and NES video-memory constraints.
- Examples
- Uses cycling meteor enemies, randomly placed twinkling stars, palette-swapped scenery, and explosion effects.
- What you can do after
- Build it from scratch by cycling sprite patterns, updating background tiles, and swapping palette colors on timed intervals.
Read how Classic Game Programming on the NES: Make your own retro video game explains animation →
Math for Web Design
A web animation is the programmed or styled change of visual properties over time in a web interface.
- How it is used
- Uses calculated changes over time or scroll position to create motion, interactive feedback, and progress indicators in web interfaces.
- How deep it goes
- Works through frame-by-frame motion, easing, bouncing, and scroll calculations, alongside CSS transitions and a CSS orbit.
- Examples
- Demonstrates an entering dialog, hover tooltip, circular orbit, bouncing ball, reading progress indicator, and confetti shower.
- What you can do after
- Build it from scratch using CSS or JavaScript calculations to control timing, position, feedback, and scroll-driven visual changes.
HTML5 in Action
An animation is a sequence of visual changes displayed over time to create an impression of movement.
- How it is used
- Uses animation to make Canvas games and interactive pages respond visually over time.
- How deep it goes
- Explains frame scheduling, fluctuating frame rates, and one way to separate movement updates from drawing.
- Examples
- Uses a ball-and-paddle Canvas game and a per-frame position increment to illustrate animation and uneven movement.
- What you can do after
- Apply it via requestAnimationFrame() to schedule Canvas drawing and separate movement updates when frame rates fluctuate.
CSS in Depth, Second Edition
Animation is a time-varying visual change in a user interface that can communicate information or significance to the user.
- How it is used
- Uses animation to communicate interaction feedback, loading progress, and other meaningful changes in an interface.
- How deep it goes
- Explains animation through a working form example and rendering internals, including layers, GPU acceleration, and will-change.
- Examples
- Demonstrates a Save-button spinner, an is-loading class, a rotating pseudo-element, and a form-submission feedback state.
- What you can do after
- Build it from scratch using CSS keyframes, pseudo-elements, transforms, and JavaScript-triggered loading states.
Everyday Data Visualization
Animation is the presentation of visual changes through a sequence of displayed states over time.
- How it is used
- Uses motion to attract attention, show changing data, and confirm successful chart interactions.
- How deep it goes
- Explains purposes, examples, and cautions about distraction and performance, but stops short of implementation steps.
- Examples
- Uses racing bar charts, Gapminder’s World Health Chart, loading spinners, growing bars, and rearranging visual elements.
- What you can do after
- Apply animation to emphasize changing data or provide timely interaction feedback without harming clarity or performance.
Also covered in
- React in Depth
- WordPress Power Toolkit: Harness AI to build next-level websites
- Learn Go with Pocket-Sized Projects
What to know first
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- buttonA button is an interactive user-interface control that a user can activate to initiate an action or select an option.
- canvas elementThe HTML canvas element is a scriptable bitmap drawing surface in a web document, with an API for rendering graphics.
- coordinateA coordinate is a numerical value, or one component of an ordered set of values, specifying a position relative to a coordinate system.
Related concepts
- motionuses · Motion is a change in an object’s position or configuration over time.
- CSS transform propertyused by · The CSS transform property applies two-dimensional or three-dimensional geometric transformations, such as translation, rotation, scaling, and skewing, to an element’s rendering.
- prefers-reduced-motionconfigured by · prefers-reduced-motion is a CSS media feature that indicates whether a user has requested reduced motion, allowing styles to adapt to that preference.
- CSSused by · CSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
Questions about animation
What is animation?
Animation is the presentation of changing visual states over time to create the appearance of motion or change.
Which Manning books explain animation?
Design for Developers, Classic Game Programming on the NES: Make your own retro video game, Math for Web Design, HTML5 in Action, CSS in Depth, Second Edition and Everyday Data Visualization.
What should I know before learning animation?
Manning books that teach animation usually introduce CSS, button, canvas element and coordinate first.
What kinds of animation are there?
Kinds of animation include experience-blocking animation.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.





