Animated React component — HatGlasses / HatGlassesIcon
Hover the hat-glasses icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { HatGlasses } from "lucide-motion";Also exported as HatGlassesIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { HatGlasses } from "lucide-motion";
<HatGlasses 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": "M14 18a2 2 0 0 0-4 0"
}
],
[
"path",
{
"d": "m19 11-2.11-6.657a2 2 0 0 0-2.752-1.148l-1.276.61A2 2 0 0 1 12 4H8.5a2 2 0 0 0-1.925 1.456L5 11"
}
],
[
"path",
{
"d": "M2 11h20"
}
],
[
"circle",
{
"cx": "17",
"cy": "18",
"r": "3"
}
],
[
"circle",
{
"cx": "7",
"cy": "18",
"r": "3"
}
]
]