On this page
  1. transform
  2. Syntax & Overview
  3. Notes & Best Practices
  4. Example

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.

Notes & Best Practices

Example

.card { transition: transform 160ms ease; }
.card:hover { transform: translateY(-2px) scale(1.01); }

Linked from

Related notes