Scale X

Set the horizontal scale for an element.

Widely available

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

Chrome
Edge
Firefox
Safari

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

Negative Values

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

Use the -- syntax to apply negative numeric values.

Syntax:sx--(value)