Animated React component — CupSoda / CupSodaIcon
Hover the cup-soda icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { CupSoda } from "lucide-motion";Also exported as CupSodaIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { CupSoda } from "lucide-motion";
<CupSoda 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 8 1.75 12.28a2 2 0 0 0 2 1.72h4.54a2 2 0 0 0 2-1.72L18 8"
}
],
[
"path",
{
"d": "M5 8h14"
}
],
[
"path",
{
"d": "M7 15a6.47 6.47 0 0 1 5 0 6.47 6.47 0 0 0 5 0"
}
],
[
"path",
{
"d": "m12 8 1-6h2"
}
]
]