On this page
transform
Prev: motion | Up: motion | Next: `opacity`
Rel: motion, Custom Properties & Animation Guide
Ref: MDN Web Docs — transform
Tags: #public #web #css #properties #motion #tier/core
Syntax & Overview
transform: translateY(-2px) scale(1.02);
Applies 2D/3D GPU-composited geometric transforms without triggering layout reflow.
- Initial:
none| Inherited: No | Animatable: Yes (compositor)
Notes & Best Practices
- Moves/scales/rotates without triggering layout reflow: Individual properties (
translate,scale,rotate) can now be animated independently without overwriting each other.
Example
.card { transition: transform 160ms ease; }
.card:hover { transform: translateY(-2px) scale(1.01); }
Linked from
Related notes
- tuts/css/properties/motion/opacity Linked here; links to this page; shared tags: #css, #motion, #properties, #tier, #web
- tuts/css/properties/motion Linked here; links to this page; shared tags: #css, #motion, #properties, #web
- tuts/css/properties/custom_properties_and_animation Linked here; shared tags: #css, #properties, #web
- tuts/css/properties/motion/animation shared tags: #css, #motion, #properties, #tier, #web
- tuts/css/properties/motion/transition shared tags: #css, #motion, #properties, #tier, #web
- tuts/css/properties/motion/will-change shared tags: #css, #motion, #properties, #tier, #web
- tuts/css/properties/box_model/aspect-ratio shared tags: #css, #properties, #tier, #web
- tuts/css/properties/box_model/box-sizing shared tags: #css, #properties, #tier, #web
- tuts/css/properties/box_model/inline-size shared tags: #css, #properties, #tier, #web
- tuts/css/properties/box_model/margin shared tags: #css, #properties, #tier, #web