Components
AnimatedHamburgerButton Component Category: UI ยท Navigation ยท Animation Framework: React + Framer Motion + TailwindCSS
๐ Description: AnimatedHamburgerButton is a beautifully animated hamburger menu icon designed for modern React apps using Framer Motion and TailwindCSS. It transitions smoothly between open and closed states with elegant rotations and position shifts, mimicking a classic โXโ close icon.
Perfect for toggling mobile nav menus or drawer components with delightful motion feedback.
๐ Features: ๐ฌ Smooth morphing animation using Framer Motion variants
๐ Clean and minimal circular button UI
๐จ Built with TailwindCSS for easy theming
๐ง Declarative and fully reusable in any React app
โ๏ธ Custom transition timing with MotionConfig
๐งฉ Ideal Use Cases: Mobile navigation toggles
Sidebar / Drawer trigger buttons
Interactive UI/UX prototypes
Any app needing aesthetic animated controls
๐ฆ Dependencies: react
framer-motion
tailwindcss (for styling)
๐ก Customization Ideas: Adjust rotate, top, or left values in VARIANTS to tweak the animation style
Change dimensions or colors to match your branding
Replace spans with SVG paths for more complex icons
๐ Usage: tsx Copy Edit import { AnimatedHamburgerButton } from "./AnimatedHamburgerButton";
<AnimatedHamburgerButton />Loading preview...
import { Example } from "@/components/ui/hamburger-button";
export default function DemoOne() {
return <Example />;
}