Scale Z

Set the depth scale for an element.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

sz-0
scale: 0;
sz-10
scale: .1;
sz-20
scale: .2;
sz-30
scale: .3;
sz-40
scale: .4;
sz-50
scale: .5;
sz-60
scale: .6;
sz-70
scale: .7;
sz-80
scale: .8;
sz-90
scale: .9;
sz-100
scale: 1;

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

@sm:sz-(value)
Small640px
@md:sz-(value)
Medium768px
@lg:sz-(value)
Large1024px
@xxl:sz-(value)
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:sz-(value)

Negative Values

Use negative variants to flip and scale in the opposite direction.

Use the -- syntax to apply negative numeric values.

Syntax:sz--(value)