Animated React component — Sparkles / SparklesIcon
Hover the sparkles icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { Sparkles } from "lucide-motion";Also exported as SparklesIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { Sparkles } from "lucide-motion";
<Sparkles 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": "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"
}
],
[
"path",
{
"d": "M20 2v4"
}
],
[
"path",
{
"d": "M22 4h-4"
}
],
[
"circle",
{
"cx": "4",
"cy": "20",
"r": "2"
}
]
]