Sitepeel

Morphicons

morphicons.com · Components · Open source

Visit site

Smoothly morph one SVG icon into another, like a menu icon turning into an X, with spring physics.

  1. What it is

    An npm package that animates between any two icons, across sets like Lucide, Tabler, Heroicons and Material Symbols, outlined or filled. The homepage is a playground where you pick icons and tune speed, stroke and spring style. It works in React, Vue, Svelte, React Native, Astro and plain JavaScript with no extra dependencies.

  2. Is it for you?

    Made for
    Front-end developers who want animated icon toggles without making each animation by hand.
    You need
    Npm and a JavaScript framework, or plain JS
    Price
    Open source (MIT)
  3. What you can do with it

    • Animate a hamburger menu into a close icon
    • Morph a play button into pause
    • Try icon pairs in the playground before adding them

More like this

See all 227 resources