Sonu kumar

Hamburger Button

Buttons 1

About

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 />

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Hamburger Button to your project and fits it to your theme.

Code

How Hamburger Button is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Example } from "@/components/ui/hamburger-button";

export default function DemoOne() {
  return <Example />;
}

Dependencies

More by Sonu kumar

View all
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Modern Hero

    Modern Hero

    1.5K
  • Text Parallax Content (scroll)

    Text Parallax Content (scroll)

    1.2K
  • Modern Animated Hero Section

    Modern Animated Hero Section

    1.2K
  • About Us section

    About Us section

    1.2K
  • Animated Hero Section

    Animated Hero Section

    709
  • Cuisine Selector Chips

    Cuisine Selector Chips

    604
  • Bounce card features

    Bounce card features

    597

More in Buttons

View all
  • Texture Button

    Texture Button

    107
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    1
  • Base Button

    Base Button

    3
  • Button

    Button

    2
  • Button

    Button

    36
  • App Store Button

    App Store Button

    484