Skip to content

Morph Icon

Transforms one vector icon smoothly into another with fluid shape morphing animations when state changes.

2.2 KB
•
Updated on August 26, 2026

Installation

Bash

Usage

Code
Code

API Reference

MorphIcon Props


Theme Switcher Transition

Smooth morphing between sun, moon, and system desktop icons.

Action & Status Toggles

Common UI action buttons (like/heart, volume/mute, play/pause, upvote) with instant morphing transitions.

Animation Presets

Side-by-side comparison of all 4 motion presets: blur-scale, rotate-scale, flip, and spring.

Multi-State Status Indicator

Morphing through multi-stage state transitions (pending, loading, success, error).

Accordion & Visibility Toggles

Password reveal and accordion expand/collapse transitions using MorphIcon.

Examples

Theme switcher transition
Action and status toggles
Animation presets showcase
Multi-state status indicator
Accordion and visibility toggles

Keep in mind

  • MIT License: Free and open-source for personal and commercial use. Feel free to copy, tweak, and adapt the components to match your exact needs.
  • Credits & Inspiration: Some components on this site are inspired by or recreated from great ideas across the web. I'm not here to take credit; just to learn, experiment, and push interface craft further.
  • Reach out & Claims: If an attribution was missed, or if you have any inquiry or claim, feel free to reach out directly on X to @adrielzimbril. I'll be glad to update or resolve it right away.