Skip to main content

Transform Origin

Utilities for specifying the origin for element transforms.

CSS Property:transform-origin
Classes:9

Transform Origin Classes

ClassCSS
origin-centertransform-origin: center;
origin-toptransform-origin: top;
origin-top-righttransform-origin: top right;
origin-righttransform-origin: right;
origin-bottom-righttransform-origin: bottom right;
origin-bottomtransform-origin: bottom;
origin-bottom-lefttransform-origin: bottom left;
origin-lefttransform-origin: left;
origin-top-lefttransform-origin: top left;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[transform-origin:value]

Responsive Variants

Apply transform origin utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:origin-center
768px+md:md:origin-center
1024px+lg:lg:origin-center
1280px+xl:xl:origin-center
1536px+2xl:2xl:origin-center