animation
scroll-timeline-name
Applies scroll-timeline-name to the scroll container itself, which needs an overflow value that scrolls.
import { scrollTimelineName } from "@sdxc/u/animation";Quick reference
Every documented call, beside the CSS it emits.
| Call | CSS |
|---|---|
u.scrollTimelineName("page-scroll") | css({ scrollTimelineName: "--page-scroll" }) |
u.scrollTimelineName("log-scroll") | css({ scrollTimelineName: "--log-scroll" }) |
Using a custom value
Every scale argument also takes a raw CSS value, which passes through untouched.
u.scrollTimelineName("page-scroll")Applying on a state
Wrap the call in a state utility to scope it to one selector.
u.hover(u.scrollTimelineName("page-scroll"))Responsive design
Wrap the call in a container query to scope it to one width.
u.at("md", u.scrollTimelineName("page-scroll"))Signature
u.scrollTimelineName(name: string)