spray-can

Animated React component — SprayCan / SprayCanIcon

Hover the spray-can icon above to see the default draw animation.

Import

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

import { SprayCan } from "lucide-motion";

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

Quick start

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

import { SprayCan } from "lucide-motion";

<SprayCan 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
paintcolorgraffitidecorationaerosoldeodorantshaving foamair freshener
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": "M3 3h.01"
    }
  ],
  [
    "path",
    {
      "d": "M7 5h.01"
    }
  ],
  [
    "path",
    {
      "d": "M11 7h.01"
    }
  ],
  [
    "path",
    {
      "d": "M3 7h.01"
    }
  ],
  [
    "path",
    {
      "d": "M7 9h.01"
    }
  ],
  [
    "path",
    {
      "d": "M3 11h.01"
    }
  ],
  [
    "rect",
    {
      "width": "4",
      "height": "4",
      "x": "15",
      "y": "5"
    }
  ],
  [
    "path",
    {
      "d": "m19 9 2 2v10c0 .6-.4 1-1 1h-6c-.6 0-1-.4-1-1V11l2-2"
    }
  ],
  [
    "path",
    {
      "d": "m13 14 8-2"
    }
  ],
  [
    "path",
    {
      "d": "m13 19 8-2"
    }
  ]
]