audiocn-svelte
Esc

Start typing to search the docs

useReducedMotion

True when the user asked the system to reduce motion.

1 min read · 37 words

Meters and visualizers use this to show a static level instead of animating.

$ pnpm dlx shadcn-svelte@latest add https://juddisjudd.github.io/audiocn-svelte/r/use-reduced-motion.json
import { useReducedMotion } from "#lib/hooks/use-reduced-motion.svelte.js";

const reducedMotion = useReducedMotion();

It returns Svelte's prefersReducedMotion, so read reducedMotion.current. It is false during server rendering and updates when the setting changes.

Last updated on October 7, 2026