liveBook · Manning

Scale

Scale is a CSS transformation that enlarges or reduces an element along one or more dimensions without changing its layout dimensions.

How 2 Manning books explain it

CSS in Depth, Second Edition

A scale transform changes an element's rendered dimensions along one or more axes without changing its layout dimensions.

How it is used
Enlarges interactive icons without moving adjacent labels or other layout elements.
How deep it goes
Explains scale values and layout effects through a worked navigation example, then distinguishes standalone properties from combined transforms.
Examples
Uses a half-size card and an SVG navigation icon that grows on hover or keyboard focus.
What you can do after
Apply it via CSS to resize an interactive icon smoothly without shifting its label.

Read how CSS in Depth, Second Edition explains scale →

Tiny CSS Projects

The CSS scale() transform function enlarges or reduces an element along the horizontal and vertical axes.

How it is used
Applies proportional growth or reduction to interactive share links during hover and keyboard focus.
How deep it goes
Defines one- and two-value syntax, explains scale(1) as the default, and notes background and overflow consequences.
Examples
Demonstrates a social-sharing link that grows to 125% on hover or focus and animates the change over 250 milliseconds.
What you can do after
Apply it via CSS to create proportional magnification and animate it between normal and enlarged states.

Read how Tiny CSS Projects explains scale →

Related concepts

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.