UNPKG

@humanspeak/svelte-motion

Version:

Framer Motion for Svelte 5. Declarative motion.<tag> components with AnimatePresence exit animations, gestures (hover, tap, drag, focus, in-view), variants, FLIP layout animations, shared-layout transitions, spring physics, and scroll-linked motion values

10 lines (9 loc) 400 B
import * as html from './html/index'; /** * Lazy motion component namespace used with `<LazyMotion>`. * * The namespace mirrors the default `motion` object API (`m.div`, `m.button`, * `m.svg`, etc.) while reading feature availability from the nearest * LazyMotion provider. */ export const m = Object.fromEntries(Object.entries(html).map(([key, component]) => [key.toLowerCase(), component]));