cog

Animated React component — Cog / CogIcon

Hover the cog icon above to see the default draw animation.

Import

Tree-shakable named import — only the icons you reference end up in your bundle.

import { Cog } from "lucide-motion";

Also exported as CogIcon for the Lucide-suffix naming convention.

Quick start

Drop the component into your JSX. The default trigger plays the draw animation on hover.

import { Cog } from "lucide-motion";

<Cog size={32} />
Timing presets · hover to play
Snappy
duration={0.2} stagger={0}
Cinematic
duration={1.5} stagger={0.4}
Linear
easing="linear"
Spinner
trigger="mount" repeat={Infinity}
Tags
computingsettingscogeditgearpreferencescontrolsconfigurationfixedbuildconstructionparts
Related icons

Raw node data

The icon's underlying SVG node tree — useful if you need to render or transform it yourself instead of using the component.

Show IconNode[]
[
  [
    "path",
    {
      "d": "M11 10.27 7 3.34"
    }
  ],
  [
    "path",
    {
      "d": "m11 13.73-4 6.93"
    }
  ],
  [
    "path",
    {
      "d": "M12 22v-2"
    }
  ],
  [
    "path",
    {
      "d": "M12 2v2"
    }
  ],
  [
    "path",
    {
      "d": "M14 12h8"
    }
  ],
  [
    "path",
    {
      "d": "m17 20.66-1-1.73"
    }
  ],
  [
    "path",
    {
      "d": "m17 3.34-1 1.73"
    }
  ],
  [
    "path",
    {
      "d": "M2 12h2"
    }
  ],
  [
    "path",
    {
      "d": "m20.66 17-1.73-1"
    }
  ],
  [
    "path",
    {
      "d": "m20.66 7-1.73 1"
    }
  ],
  [
    "path",
    {
      "d": "m3.34 17 1.73-1"
    }
  ],
  [
    "path",
    {
      "d": "m3.34 7 1.73 1"
    }
  ],
  [
    "circle",
    {
      "cx": "12",
      "cy": "12",
      "r": "2"
    }
  ],
  [
    "circle",
    {
      "cx": "12",
      "cy": "12",
      "r": "8"
    }
  ]
]