CSS transform property
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 in Depth, Second Edition
A 3D transform is a geometric transformation that changes an element's position or orientation along the x, y, and z dimensions.
- How it is used
- Uses transforms to change elements’ apparent position or shape, particularly during UI transitions and animations.
- How deep it goes
- Works through basic functions, ordering, performance, 3D axes, and perspective using rendered examples.
- Examples
- Builds a rotated card, pressed button, sliding navigation labels, tilted boxes, and animated card grid.
- What you can do after
- Build it from scratch: combine ordered 2D and 3D transforms with perspective and motion effects.
Read how CSS in Depth, Second Edition explains CSS transform property →
Tiny CSS Projects
The CSS transform property changes an element's visual geometry without changing its position in normal document flow or the space allocated around it.
- How it is used
- Changes visible size or position for loader animations and interactive content without repositioning surrounding elements.
- How deep it goes
- Works through scaleY() keyframes, translateY() states, transform transitions, and transform-origin; defers a full list of transform functions.
- Examples
- Shows pulsing SVG loader rectangles, a card that reveals content on hover or focus, and a share link that enlarges.
- What you can do after
- Build it from scratch with CSS keyframes or transitions to animate visible size and position while preserving surrounding layout.
Read how Tiny CSS Projects explains CSS transform property →
D3.js in Action, Third Edition
The CSS transform property applies geometric transformations such as translation, rotation, or scaling to an element.
- How it is used
- Positions labels, badges, and chart grid elements while CSS transitions animate their movement.
- How deep it goes
- Demonstrates translated SVG groups, transition timing, and a Safari workaround without exploring transform mathematics or broader syntax.
- Examples
- Uses translated labels, framework badges, vertical grid lines, and a rankings visualization as implementation examples.
- What you can do after
- Operate CSS transforms and transitions to position and smoothly animate SVG chart elements in React components.
Read how D3.js in Action, Third Edition explains CSS transform property →
Also covered in
What to know first
- 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.
- buttonA button is an interactive user-interface control that a user can activate to initiate an action or select an option.
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
Related concepts
- transitionused by · A CSS transition interpolates changes in a CSS property’s value over time when that value changes.
- animationuses · Animation is the presentation of changing visual states over time to create the appearance of motion or change.
- CSSpart of · CSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- normal flowcontrasts with · Normal flow is the browser’s ordinary layout process, arranging elements according to document order and their formatting behavior without out-of-flow positioning.
Questions about CSS transform property
What is CSS transform property?
The CSS transform property applies two-dimensional or three-dimensional geometric transformations, such as translation, rotation, scaling, and skewing, to an element’s rendering.
Which Manning books explain CSS transform property?
CSS in Depth, Second Edition, Tiny CSS Projects and D3.js in Action, Third Edition.
What should I know before learning CSS transform property?
Manning books that teach CSS transform property usually introduce JavaScript, animation, button and CSS first.
What is the difference between CSS transform property and normal flow?
The CSS transform property applies two-dimensional or three-dimensional geometric transformations, such as translation, rotation, scaling, and skewing, to an element’s rendering. Normal flow is the browser’s ordinary layout process, arranging elements according to document order and their formatting behavior without out-of-flow positioning.
What kinds of CSS transform property are there?
Kinds of CSS transform property include rotateY function.
What is CSS transform property part of?
CSS transform property is part of CSS. CSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
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.


