Skip to content

Preferred Reduced Motion

Reactive prefers-reduced-motion media query.

🎬 Usage

<script>
    import {preferred_reduced_motion} from "sveltecore"

    const motion = preferred_reduced_motion()
</script>

👩‍💻API

Returns

A subscribable store with the value of the prefers-reduced-motion media query.

🧪 Playground


Last update: 2022-11-13