Animated React component — TrainFront / TrainFrontIcon
Hover the train-front icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { TrainFront } from "lucide-motion";Also exported as TrainFrontIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { TrainFront } from "lucide-motion";
<TrainFront 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": "M8 3.1V7a4 4 0 0 0 8 0V3.1"
}
],
[
"path",
{
"d": "m9 15-1-1"
}
],
[
"path",
{
"d": "m15 15 1-1"
}
],
[
"path",
{
"d": "M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z"
}
],
[
"path",
{
"d": "m8 19-2 3"
}
],
[
"path",
{
"d": "m16 19 2 3"
}
]
]