sdxc

Type to search, or start from one of these:

responsive

motionReduce

Sugar over media("(prefers-reduced-motion: reduce)", input).

import { motionReduce } from "@sdxc/u/responsive";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.motionReduce(u.transitionDuration("0s"))css({ "@media (prefers-reduced-motion: reduce)": { transitionDuration: "0s" } })

Using a custom value

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

u.motionReduce(u.transitionDuration("0s"))

Applying on a state

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

u.hover(u.motionReduce(u.transitionDuration("0s")))

Signature

u.motionReduce(input: UtilityInput<Node>)