Animated React component — TrafficCone / TrafficConeIcon
Hover the traffic-cone icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { TrafficCone } from "lucide-motion";Also exported as TrafficConeIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { TrafficCone } from "lucide-motion";
<TrafficCone 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": "M16.05 10.966a5 2.5 0 0 1-8.1 0"
}
],
[
"path",
{
"d": "m16.923 14.049 4.48 2.04a1 1 0 0 1 .001 1.831l-8.574 3.9a2 2 0 0 1-1.66 0l-8.574-3.91a1 1 0 0 1 0-1.83l4.484-2.04"
}
],
[
"path",
{
"d": "M16.949 14.14a5 2.5 0 1 1-9.9 0L10.063 3.5a2 2 0 0 1 3.874 0z"
}
],
[
"path",
{
"d": "M9.194 6.57a5 2.5 0 0 0 5.61 0"
}
]
]