Candy Cane icon
A hand-drawn candy cane icon that animates on its own: an SVG on a 24px grid in thin, regular and bold strokes. Free to download and use in the apps you build (LumioUI License). It takes your text colour through currentColor.
- Category
- Food
- Grid
- 24 × 24
- Strokes
- 1.5 · 2 · 2.5
- Name
candy-cane
Stroke weights and sizes
Use it in React Native
Paste the SVG into react-native-svg's SvgXml. The Icon component covers a curated set by name, and Animated Icons plays the motion natively.
TSX CandyCaneIcon.tsx
import { SvgXml } from "react-native-svg";
const CandyCaneIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M7.18 20.48C6.58 20.48 6.18 20.08 6.18 19.48L6.18 9.28C6.18 5.68 8.88 2.98 12.28 2.98S18.38 5.68 18.38 9.08C18.38 9.68 17.98 10.08 17.38 10.08L16.08 10.08C15.48 10.08 15.08 9.68 15.08 9.08C15.08 6.98 13.78 5.38 12.18 5.38C10.48 5.38 9.28 6.98 9.28 9.08L9.28 19.68C9.28 20.28 8.88 20.48 8.28 20.48L7.18 20.48Z"></path><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="6.28" y1="16.48" x2="9.18" y2="14.98"></line><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="6.28" y1="12.78" x2="9.18" y2="11.28"></line><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="9.98" y1="4.88" x2="12.08" y2="6.88"></line><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="14.58" y1="3.98" x2="17.38" y2="5.28"></line></g></svg>`;
<SvgXml xml={CandyCaneIcon} width={24} height={24} color="#111" /> SVG code
The still glyph. The animated version, linked above, plays its motion on its own with SMIL, so it needs no script.
SVG candy-cane.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M7.18 20.48C6.58 20.48 6.18 20.08 6.18 19.48L6.18 9.28C6.18 5.68 8.88 2.98 12.28 2.98S18.38 5.68 18.38 9.08C18.38 9.68 17.98 10.08 17.38 10.08L16.08 10.08C15.48 10.08 15.08 9.68 15.08 9.08C15.08 6.98 13.78 5.38 12.18 5.38C10.48 5.38 9.28 6.98 9.28 9.08L9.28 19.68C9.28 20.28 8.88 20.48 8.28 20.48L7.18 20.48Z"></path><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="6.28" y1="16.48" x2="9.18" y2="14.98"></line><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="6.28" y1="12.78" x2="9.18" y2="11.28"></line><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="9.98" y1="4.88" x2="12.08" y2="6.88"></line><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="14.58" y1="3.98" x2="17.38" y2="5.28"></line></g></svg> On the web, link it straight from the CDN:
HTML index.html
<img src="https://cdn.lumioui.com/iconset/static/candy-cane.svg" width="24" height="24" alt="Candy Cane" />