Skip to main content

Perspective Origin

Utilities for controlling the origin of the perspective.

CSS Property:perspective-origin
Classes:9

Perspective Origin Classes

ClassCSS
perspective-origin-centerperspective-origin: center;
perspective-origin-topperspective-origin: top;
perspective-origin-top-rightperspective-origin: top right;
perspective-origin-rightperspective-origin: right;
perspective-origin-bottom-rightperspective-origin: bottom right;
perspective-origin-bottomperspective-origin: bottom;
perspective-origin-bottom-leftperspective-origin: bottom left;
perspective-origin-leftperspective-origin: left;
perspective-origin-top-leftperspective-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.

[perspective-origin:value]

Responsive Variants

Apply perspective origin utilities at specific breakpoints using responsive prefixes.

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