Animated React component — RollerCoaster / RollerCoasterIcon
Hover the roller-coaster icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { RollerCoaster } from "lucide-motion";Also exported as RollerCoasterIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { RollerCoaster } from "lucide-motion";
<RollerCoaster 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": "M6 19V5"
}
],
[
"path",
{
"d": "M10 19V6.8"
}
],
[
"path",
{
"d": "M14 19v-7.8"
}
],
[
"path",
{
"d": "M18 5v4"
}
],
[
"path",
{
"d": "M18 19v-6"
}
],
[
"path",
{
"d": "M22 19V9"
}
],
[
"path",
{
"d": "M2 19V9a4 4 0 0 1 4-4c2 0 4 1.33 6 4s4 4 6 4a4 4 0 1 0-3-6.65"
}
]
]