createReducedMotion
Returns an accessor for (prefers-reduced-motion: reduce) and updates when the OS setting changes.
Use it to replace high-motion effects with a calmer state.
import { createReducedMotion, motion } from 'motion-solidjs'
function Hero() {
const reduced = createReducedMotion()
return (
<motion.div animate={reduced() ? { opacity: 1 } : { opacity: 1, scale: 1.05, rotate: 4 }} />
)
}
prefers-reduced-motion: no-preference