Skip to main content

Scroll Snap Stop

Set the scroll snap skipping behavior.

View as Markdown
baselinewidely
ClassCSS
sss:ascroll-snap-stop: always;
sss:nscroll-snap-stop: normal;

Variants

Prefix any class with a variant to apply it only under that condition. Variants stack, as in @md:h:sss:n.

Breakpoints

Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.

@xs:sss:nFrom 32rem up.
@sm:sss:nFrom 40rem up.
@md:sss:nFrom 48rem up.
@lg:sss:nFrom 64rem up.
@xl:sss:nFrom 80rem up.
@xxl:sss:nFrom 96rem up.

Containers

Apply a class from a container's width up, not the viewport's. Mark the parent with ct:is first.

@c:xs:sss:nContainer from 32rem up.
@c:sm:sss:nContainer from 40rem up.
@c:md:sss:nContainer from 48rem up.
@c:lg:sss:nContainer from 64rem up.
@c:xl:sss:nContainer from 80rem up.
@c:xxl:sss:nContainer from 96rem up.

Media

Apply a class when the device or the page matches a condition, or on the first frame an element renders.

@pc:sss:nOn a touch screen.
@prm:sss:nWith reduced motion on.
@st:sss:nOn the first frame.

States

Apply a class only while the element is in a state, such as hovered, focused or checked.

h:sss:nOn :hover.
f:sss:nOn :focus.
fv:sss:nOn :focus-visible.
a:sss:nOn :active.
d:sss:nOn :disabled.
fc:sss:nOn :first-child.
c:sss:nOn :checked.
e:sss:nOn :empty.
fw:sss:nOn :focus-within.
i:sss:nOn :invalid.
in:sss:nOn :indeterminate.
lc:sss:nOn :last-child.
nc:sss:nOn :nth-child.
r:sss:nOn :required.
ro:sss:nOn :read-only.
v:sss:nOn :valid.

Pseudo Elements

Style a part of the element rather than the element itself, such as its placeholder or the selected text.

a::sss:nOn ::after.
b::sss:nOn ::before.
p::sss:nOn ::placeholder.
s::sss:nOn ::selection.