effects
transition-delay
Applies transition-delay on its own, so items sharing one transition can stagger by giving each an increasing delay.
import { transitionDelay } from "@sdxc/u/effects";Quick reference
Every documented call, beside the CSS it emits.
| Call | CSS |
|---|---|
u.transitionDelay() | css({ transitionDelay: "0s" }) |
u.transitionDelay("120ms") | css({ transitionDelay: "120ms" }) |
Using a custom value
Every scale argument also takes a raw CSS value, which passes through untouched.
u.transitionDelay()Applying on a state
Wrap the call in a state utility to scope it to one selector.
u.hover(u.transitionDelay())Responsive design
Wrap the call in a container query to scope it to one width.
u.at("md", u.transitionDelay())Signature
u.transitionDelay(value?: string)