Animated React component — Cog / CogIcon
Hover the cog icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { Cog } from "lucide-motion";Also exported as CogIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { Cog } from "lucide-motion";
<Cog 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": "M11 10.27 7 3.34"
}
],
[
"path",
{
"d": "m11 13.73-4 6.93"
}
],
[
"path",
{
"d": "M12 22v-2"
}
],
[
"path",
{
"d": "M12 2v2"
}
],
[
"path",
{
"d": "M14 12h8"
}
],
[
"path",
{
"d": "m17 20.66-1-1.73"
}
],
[
"path",
{
"d": "m17 3.34-1 1.73"
}
],
[
"path",
{
"d": "M2 12h2"
}
],
[
"path",
{
"d": "m20.66 17-1.73-1"
}
],
[
"path",
{
"d": "m20.66 7-1.73 1"
}
],
[
"path",
{
"d": "m3.34 17 1.73-1"
}
],
[
"path",
{
"d": "m3.34 7 1.73 1"
}
],
[
"circle",
{
"cx": "12",
"cy": "12",
"r": "2"
}
],
[
"circle",
{
"cx": "12",
"cy": "12",
"r": "8"
}
]
]