Skip to main content

Perspective

Utilities for controlling the perspective of an element.

CSS Property:perspective
Classes:7

Perspective Classes

ClassCSS
perspective-noneperspective: none;
perspective-dramaticperspective: 100px;
perspective-nearperspective: 300px;
perspective-normalperspective: 500px;
perspective-midrangeperspective: 800px;
perspective-farperspective: 1000px;
perspective-distantperspective: 1200px;

Arbitrary Values

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

[perspective:value]

Responsive Variants

Apply perspective utilities at specific breakpoints using responsive prefixes.

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