Scale

Also called scale transform, scaleX, or scaleY

A CSS transform that draws an element larger or smaller around its transform origin, without pushing neighboring elements.

What is Scale?

transform: scale(1.1) draws an element 10% larger and scale(0.5) draws it at half size. scaleX() and scaleY() stretch one axis at a time. Everything inside grows with it, including text, borders, and shadows, and it grows from the transform origin, which is the center unless you change it.

The layout box keeps its original size, so neighbors stay put and a scaled-up element can overlap them. That makes scale ideal for small, quick feedback: a button shrinking to 0.97 while pressed, a card growing to 1.03 on hover, or a menu popping in from 0.95.

Avoid scaling from 0: elements that grow out of nothing feel abrupt, so start at 0.9 to 0.95 and add a fade. Large scale-ups of text can look slightly soft mid-animation, and animating width or height instead forces layout work on every frame.

Often confused with

Scale in
Scale-in is an entrance animation that grows an element into view. Scale is the transform it uses, and it works for any size change.
All terms

Transform origin

The point an element rotates and scales around. It defaults to the center, and moving it changes where a transform seems to start.

Press feedback

A quick visual response, usually a slight shrink, that shows a button registered the press the moment a finger or mouse button goes down.

Scale in

An entrance animation where an element grows from slightly smaller than its final size to full size while it fades in.

Translate

A CSS transform that moves an element along the x or y axis while the layout around it stays exactly where it was.