O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

transform

Values:

none | <transform-function> [ <transform-function> ]*

Expansions:

<transform-function>

See description.

Initial value:

none

Applies to:

Block- and inline-level elements

Inherited:

No

Computed value:

Same as declared value

Description:

Defines one or more transforms of an element. These transforms can occur in a 2D or a simulated 3D space, depending on how the transforms are declared.

The permitted values for <transform-function> are lengthy and complex. For a full list with minimalist descriptions, please consult http://w3.org/TR/css3-3d-transforms/#transform-functions.

Examples:

table th {transform: rotate(45deg);}
li {transform: scale3d(1.2,1.7,0.85);}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required