sdxc

Type to search, or start from one of these:

overflow

scroll-snap-stop

Applies scroll-snap-stop to a snap item, defaulting to "always" so a fast flick rests on the item and one swipe advances exactly one page.

import { scrollSnapStop } from "@sdxc/u/overflow";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.scrollSnapStop()css({ scrollSnapStop: "always" })
u.scrollSnapStop("normal")css({ scrollSnapStop: "normal" })

Using a custom value

Every scale argument also takes a raw CSS value, which passes through untouched.

u.scrollSnapStop()

Applying on a state

Wrap the call in a state utility to scope it to one selector.

u.hover(u.scrollSnapStop())

Responsive design

Wrap the call in a container query to scope it to one width.

u.at("md", u.scrollSnapStop())

Signature

u.scrollSnapStop(value?: ScrollSnapStopValue)