Animated React component — Hamburger / HamburgerIcon
Hover the hamburger icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { Hamburger } from "lucide-motion";Also exported as HamburgerIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { Hamburger } from "lucide-motion";
<Hamburger size={32} />duration={0.2} stagger={0}duration={1.5} stagger={0.4}easing="linear"trigger="mount" repeat={Infinity}The icon's underlying SVG node tree — useful if you need to render or transform it yourself instead of using the component.
[
[
"path",
{
"d": "M12 16H4a2 2 0 1 1 0-4h16a2 2 0 1 1 0 4h-4.25"
}
],
[
"path",
{
"d": "M5 12a2 2 0 0 1-2-2 9 7 0 0 1 18 0 2 2 0 0 1-2 2"
}
],
[
"path",
{
"d": "M5 16a2 2 0 0 0-2 2 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 2 2 0 0 0-2-2q0 0 0 0"
}
],
[
"path",
{
"d": "m6.67 12 6.13 4.6a2 2 0 0 0 2.8-.4l3.15-4.2"
}
]
]