Scale

Set the scale for an element.

Widely available

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

Chrome
Edge
Firefox
Safari

s-0
scale: 0;
s-10
scale: .1;
s-20
scale: .2;
s-30
scale: .3;
s-40
scale: .4;
s-50
scale: .5;
s-60
scale: .6;
s-70
scale: .7;
s-80
scale: .8;
s-90
scale: .9;
s-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:s-*
Small640px
md:s-*
Medium768px
lg:s-*
Large1024px
xxl:s-*
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:s-*

Negative Values

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

Use the -- syntax to apply negative numeric values.

Syntax:s--*