Transform

noun

say it: “trans-FORM” /trænsˈfɔːrm/

A CSS property that moves, turns, resizes or tilts an element as it is drawn, without pushing the things around it out of place.

What does transform do?

transform moves, rotates, scales or skews an element visually, without affecting the layout around it.

.card:hover { transform: translateY(-4px) scale(1.02); }

In a sentence

  • “On hover, a transform lifts the card 4 pixels up without moving the cards next to it.”

Level: Journeyman · More CSS terms at this level

Updated