Morphing Icon

Morphing Icon: An animated micro-interaction wrapper that smoothly morphs between two icon states with coordinated rotation, scale, and cross-fade transitions. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Morphing Icon

npx motion-ui-skill add morphing-icon

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Source files

Morphing Icon

An animated micro-interaction wrapper that smoothly morphs between two icon states with coordinated rotation, scale, and cross-fade transitions.

Install

npx motion-ui-skill add morphing-icon

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { MorphingIcon as MorphingIcon } from "@/components/craft/morphing-icon";

export function Example() {
  return (
    <div className="p-6">
      <MorphingIcon />
    </div>
  );
}

Browse this category