Scroll Snap Type

Set the scroll snap direction & strictness.

Widely available

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

Chrome
Edge
Firefox
Safari

sst-bm
scroll-snap-type: both mandatory;
sst-none
scroll-snap-type: none;
sst-xm
scroll-snap-type: x mandatory;
sst-xp
scroll-snap-type: x proximity;
sst-ym
scroll-snap-type: y mandatory;
sst-yp
scroll-snap-type: y proximity;

Responsiveness

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

Target viewport sizes with breakpoint prefixes.

sm:sst-(value)
Small640px
md:sst-(value)
Medium768px
lg:sst-(value)
Large1024px
xxl:sst-(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:sst-(value)