Transform origin

noun

say it: “trans-FORM OR-ih-jin” /trænsˈfɔːrm ˈɔːrɪdʒɪn/

The CSS property that sets the point an element turns or grows around, such as its center (the default), a corner or an edge.

What does transform-origin do?

transform-origin sets the point an element rotates or scales around. The default is its center.

.door { transform-origin: left center; transform: rotateY(-60deg); }   /* swings on its hinge */

In a sentence

  • “Setting the transform-origin to top left made the sign swing from its corner, as if it hangs on a nail.”

Level: Journeyman · More CSS terms at this level

Updated