Animated React component — GraduationCap / GraduationCapIcon
Hover the graduation-cap icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { GraduationCap } from "lucide-motion";Also exported as GraduationCapIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { GraduationCap } from "lucide-motion";
<GraduationCap 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": "M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z"
}
],
[
"path",
{
"d": "M22 10v6"
}
],
[
"path",
{
"d": "M6 12.5V16a6 3 0 0 0 12 0v-3.5"
}
]
]