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
- Motion (prev Framer Motion): JavaScript & React animation librarymotion.dev
- Anime.js | JavaScript Animation Engineanimejs.com
- Grainradgrainrad.com
- The making of Cursor's iconsminoradventures.co
- GitHub - tailwindlabs/heroicons: A set of free MIT-licensed high-quality SVG icons for UI development. · GitHubgithub.com
- Unicorn Studio — No-code WebGL Toolunicorn.studio
- Inside Framer's Magic Motionnan.fyi
- Crafting the Next.js Websiterauno.me
- srclsacred.computer
- Web Interface Guidelinesvercel.com
- Free SVG Icons - 300,000+ Open Source Icons | Iconbuddyiconbuddy.com