guillermolg00/morphicons: Any icon morphs into any other — universal morphing for stroke-based icons with spring physics. Zero dependencies, ~7 KB gzip. ·
Any icon morphs into any other — universal morphing for stroke-based icons with spring physics. Zero dependencies, ~7 KB gzip. morphicons.com — live playground Universal morphing for stroke-based icons (Lucide, Tab ler, Heroicons, Iconoir, or your own paths): any icon morphs into any other with spring physics. Rotations are never declared by hand — they emerge from the math (2D Procrustes + polar interpolation). Zero runtime dependencies. That's the whole thing. No wrappers, no AnimatePresence, no keys, no from/to pairs, no configuration. State lives outside; the animation is an implementation detail the component picks up when the prop changes. The usual icon morphs either interpolate raw coordinates (shapes shrink and shear in transit) or require hand-declaring "rotation groups" per icon pair. morphicons solves the optimal similarity between shapes in closed form and interpolates it in its natural space: if a pair is congruent under rotation, it rotates; if not, it morphs in the alig
morphicons.com — live playground Universal morphing for stroke-based icons (Lucide, Tab ler, Heroicons, Iconoir, or your own paths): any icon morphs into any other with spring physics. Rotations are never declared by hand — they emerge from the math (2D Procrustes + polar interpolation). Zero runtime dependencies. import { MorphIcon } from "morphicons/react"; import { Menu, X } from "lucide"; // data, not components <button onClick={() => setOpen(o => !o)} aria-expanded={open}> <MorphIcon icon={open ? X : Menu} /> </button> That's the whole thing. No wrappers, no AnimatePresence, no…
saved by
related reading
- morphicons — SVG icon morphing library for React, Vue & Sveltemorphicons.com
- Anime.js | JavaScript Animation Engineanimejs.com
- Motion (prev Framer Motion): JavaScript & React animation librarymotion.dev
- Free SVG Icons - 300,000+ Open Source Icons | Iconbuddyiconbuddy.com
- Chloe's Gardenchloeyan.me
- Line Awesome — Free Beautiful Icon Fonticons8.com
- ui.sh — Agent skills for interface buildersui.sh
- GitHub - tailwindlabs/heroicons: A set of free MIT-licensed high-quality SVG icons for UI development. · GitHubgithub.com
- Lucidelucide.dev
- Wonder — What you see is what you shipwonder.design
- React Iconsreact-icons.github.io
- Subframe – The AI design tool built for codesubframe.com