Animated React component — SprayCan / SprayCanIcon
Hover the spray-can icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { SprayCan } from "lucide-motion";Also exported as SprayCanIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { SprayCan } from "lucide-motion";
<SprayCan 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": "M3 3h.01"
}
],
[
"path",
{
"d": "M7 5h.01"
}
],
[
"path",
{
"d": "M11 7h.01"
}
],
[
"path",
{
"d": "M3 7h.01"
}
],
[
"path",
{
"d": "M7 9h.01"
}
],
[
"path",
{
"d": "M3 11h.01"
}
],
[
"rect",
{
"width": "4",
"height": "4",
"x": "15",
"y": "5"
}
],
[
"path",
{
"d": "m19 9 2 2v10c0 .6-.4 1-1 1h-6c-.6 0-1-.4-1-1V11l2-2"
}
],
[
"path",
{
"d": "m13 14 8-2"
}
],
[
"path",
{
"d": "m13 19 8-2"
}
]
]