design-infraGitHub
Report a problem or share feedback← Catalog

Path drawing

curatedfree

motion/path-drawing

An example of animating a SVG path to make a path drawing effect, using Motion for React.

enter · state — subtlerecipeRefinedPlayful
$pnpm add motion # then adapt the free source from https://motion.dev/examples/react-path-drawing

npm deps: motion

Our notes

pathLength: SVG line drawing for icons, checkmarks, signatures and diagrams. Free example (motion is MIT); copy and adapt the source from the example page.
Path drawing preview
Source
Motion (motion.dev)
Kind
transition
Categories
transition
Use as
recipe — technique you apply to your own markup
Applies to
illustrationloaderbadge
Motion
on enter, state · subtle · motion · low cost
Tags
motion, animate, variants
Licence
motion / motion/react / motion-v are MIT. Motion+ (premium components, example source, AI Kit pro tools) is paid — one-time Personal licence or per-seat Business.
Live demo
motion.dev
Docs
motion.dev