preferredReduceMotion

Readable prefers-reduced-motion media query.

Demo

Preferred Motion: no-preference

Usage

<script lang="ts">
import { preferredReduceMotion } from "svelte-legos";

const motion = preferredReduceMotion();

// $motion => "reduce" | "no-preference"
</script>