FIG-001 · MASTHEAD

svelte/motion.

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. The drop-in Framer Motion alternative for Svelte and SvelteKit.

get started ↗ api reference examples github
FIG-001
SHEET 01 / 06
motion tags
170
HTML + SVG proxies
hooks
16
useSpring / useScroll / …
gestures
5
hover · tap · drag · focus · in-view
tarball
123.3kB
packed (npm gz)
runtime deps
2
motion · motion-dom
licence
MIT
on GitHub
FIG-002 / DRAG

drag with spring physics.

Drop drag onto any motion tag and read its motion values live. This demo derives rotation from horizontal drag offset in component state.

file · drag.svelte x 0px y 0px rotate ○ IDLE
drag me
motion.div
  • drag
  • dragConstraints
  • dragElastic
FIG-003 / CAPABILITIES

why svelte motion.

The most complete motion library for Svelte 5 — modelled on Framer Motion.

№ 01 / 06

Drop-in motion.<tag>

170 proxy components covering every HTML and SVG element. Add initial, animate, and transition props to any tag.

№ 02 / 06

AnimatePresence

Mount and unmount with exit animations. mode="sync", "wait", or "popLayout" — same semantics as Framer Motion.

№ 03 / 06

Gestures & Drag

whileHover, whileTap, whileFocus, whileInView, plus a full drag API with constraints, momentum, elastic, snap-to-origin.

№ 04 / 06

Variants

Named animation states that propagate from parent to children. Orchestrate stagger and choreography without managing state by hand.

№ 05 / 06

Layout & Shared Layout

FLIP-based layout animation with the layout prop. Animate between elements across the DOM with layoutId.

№ 06 / 06

Spring & Scroll-linked

useSpring for physics-based motion values. useScroll + useTransform for scroll-linked animations. SSR-safe by default.

FIG-004 / VARIANTS

orchestrate variants with stagger.

One parent state cascades to N children. Adjust stagger and direction live.

variants.svelte
state rest
01
02
03
04
05
06
07
08
09
10
11
12
FIG-005 / COMPARISON MATRIX

how we compare.

Honest, side-by-side comparison with every major motion / animation library you'd consider for Svelte.

libraryframeworkdeclarativeexit animgestureslayoutspring
@humanspeak/svelte-motion ●Svelte 5yesyesyesyesyes
framer-motionReact onlyyesyesyesyesyes
motion / Motion Oneagnosticnonopartialnoyes
GSAPagnosticnonopluginsFlip pluginplugins
svelte/transitionSvelte (built-in)partialyesnonopartial
svelte/animateSvelte (built-in)partialnonoFLIP onlyno
FIG-006 / EXAMPLES

explore interactive examples.

AnimatePresence, shared layout, hover & tap, variants, scroll-progress, path morphing — every concept has a live, editable demo.

view all examples →
SET / JETBRAINS MONO + INTER
HUMANSPEAK · 2026
MIT LICENCE
● 0.3.6
SHEET 06 / 06
END OF DOCUMENT
↩ TO TOP