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

26 lines (25 loc) 546 B
/** * Set of void HTML tag names that cannot contain children. * * These tags are treated specially by motion components to prevent * rendering `children` content and to avoid hydration edge cases. * * Source: HTML Living Standard — list of void elements. * @see https://html.spec.whatwg.org/multipage/syntax.html#void-elements */ export const VOID_TAGS = new Set([ 'area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source', 'track', 'wbr' ]);