Transition
A CSS transition interpolates changes in a CSS property’s value over time when that value changes.
CSS in Depth, Second Edition
The CSS transition property is a shorthand property for specifying animated interpolation, its duration, timing function, and delay.
- How it is used
- Smooths interactive style changes on hover, focus, and JavaScript-controlled elements instead of letting values snap immediately.
- How deep it goes
- Explains shorthand components, timing functions, delays, and worked dropdown edge cases, including transitions that need JavaScript coordination.
- Examples
- Builds a color-changing button, a fading or sliding dropdown, and navigation icons and labels that move on interaction.
- What you can do after
- Build it from scratch to animate interactive CSS states and coordinate dropdown transitions with JavaScript when CSS needs a measured height.
Tiny CSS Projects
A CSS transition is a gradual interpolation between an element's property values over a specified duration.
- How it is used
- Animates changes between defined interaction states, including card reveals, link enlargement, menu opening, and a card flip.
- How deep it goes
- Explains transition declarations through worked CSS interactions and addresses overflow's inability to change gradually.
- Examples
- Uses summary cards, a flipping credit card, and share links that enlarge or open as a menu.
- What you can do after
- Build it from scratch by defining two CSS states, adding a transition, and handling menu overflow with transition events when needed.
Web Design Playground, Second Edition
The CSS transition property specifies animated changes between values of other CSS properties.
- How it is used
- Animates the appearance of an after-image overlay in a before-and-after portfolio display.
- How deep it goes
- Shows a working opacity transition and hover rule without exploring other transition properties or internals.
- Examples
- Uses a portfolio image overlay that changes from invisible to visible on hover.
- What you can do after
- Build it from scratch: add an opacity transition to a hover-revealed image overlay.
Read how Web Design Playground, Second Edition explains transition →
D3.js in Action, Third Edition
A CSS transition is a stylesheet-defined interpolation of an element's property values over time when those values change.
- How it is used
- Animates React visualization labels and badges when their transformed positions change.
- How deep it goes
- Defines a 400-millisecond transform transition and explains the SVG-group workaround, but does not detail browser animation internals.
- Examples
- Uses ranking-chart labels and badges that move through a 400-millisecond cubic-bezier transform transition.
- What you can do after
- Apply it via CSS to animate transformed visualization elements with concise, potentially performant code.
Read how D3.js in Action, Third Edition explains transition →
WordPress Power Toolkit: Harness AI to build next-level websites
A transition effect is a CSS-rendered visual change that occurs over time between element states.
- How it is used
- Applies CSS transitions to simple, user-triggered changes between two visual states.
- How deep it goes
- Explains properties, duration, speed, delay, and state changes, but stops short of detailed CSS syntax.
- Examples
- Uses fading, scaling, color changes, rotations, and black text changing to pink italics.
- What you can do after
- Apply it via CSS or YellowPencil to create smooth, simple changes between element states.
Read how WordPress Power Toolkit: Harness AI to build next-level websites explains transition →
Also covered in
- Vanilla WebIn early access (MEAP)
- Math for Web Design
What to know first
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- CSS transform propertyThe CSS transform property applies two-dimensional or three-dimensional geometric transformations, such as translation, rotation, scaling, and skewing, to an element’s rendering.
- JavaScriptJavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
- animationAnimation is the presentation of changing visual states over time to create the appearance of motion or change.
Related concepts
- CSS transform propertyuses · The CSS transform property applies two-dimensional or three-dimensional geometric transformations, such as translation, rotation, scaling, and skewing, to an element’s rendering.
- CSS animationcontrasts with · CSS animation is a CSS-defined sequence of changes to element styles over time, controlled by animation timing rules and optionally specified with keyframes.
- cubic-bezier()uses · The CSS cubic-bezier() function defines a timing function using a cubic Bézier curve specified by two control points.
- easinguses · Easing is a function or timing technique that varies an animation or transition’s rate of change over its duration.
- keyframes at-rulecontrasts with · The CSS @keyframes at-rule defines an animation’s keyframes, specifying animated property values at points along its timeline.
Questions about transition
What is transition?
A CSS transition interpolates changes in a CSS property’s value over time when that value changes.
Which Manning books explain transition?
CSS in Depth, Second Edition, Tiny CSS Projects, Web Design Playground, Second Edition, D3.js in Action, Third Edition and WordPress Power Toolkit: Harness AI to build next-level websites.
What should I know before learning transition?
Manning books that teach transition usually introduce CSS, CSS transform property, JavaScript and animation first.
What is the difference between transition and CSS animation?
A CSS transition interpolates changes in a CSS property’s value over time when that value changes. CSS animation is a CSS-defined sequence of changes to element styles over time, controlled by animation timing rules and optionally specified with keyframes.
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.




