gentleface

Gentleface › Transportation › traffic-cone

traffic-cone icon

Traffic cone: traffic cone. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated traffic-cone-drop · line-round

The cone is lifted out of the top and set down again, tilted. It lands on the right corner of its base, rocks over onto the left corner, back once more, and settles flat.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.25 s to 1.9 s. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M6.404 2.377C6.726 2.126 7.091 2 7.5 2C7.909 2 8.274 2.126 8.596 2.377C8.918 2.629 9.129 2.953 9.228 3.349L11.89 14L13.5 14C13.641 14 13.759 14.048 13.856 14.144C13.952 14.241 14 14.359 14 14.5C14 14.641 13.952 14.759 13.856 14.856C13.759 14.952 13.641 15 13.5 15L1.5 15C1.359 15 1.241 14.952 1.144 14.856C1.048 14.759 1 14.641 1 14.5C1 14.359 1.048 14.241 1.144 14.144C1.241 14.048 1.359 14 1.5 14L3.11 14L5.772 3.349C5.871 2.953 6.082 2.629 6.404 2.377ZM6.14 6L8.86 6L8.257 3.591C8.214 3.418 8.122 3.276 7.98 3.165C7.839 3.055 7.679 3 7.5 3C7.321 3 7.161 3.055 7.02 3.165C6.878 3.276 6.786 3.418 6.743 3.591L6.14 6ZM9.11 7L5.89 7L5.14 10L9.86 10L9.11 7ZM4.14 14L10.86 14L10.11 11L4.89 11L4.14 14Z"/></svg>
React
// Gentleface "traffic-cone" (line-round), MIT. https://gentleface.com/icons/traffic-cone
import type { SVGProps } from 'react';

export function TrafficConeIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M6.404 2.377C6.726 2.126 7.091 2 7.5 2C7.909 2 8.274 2.126 8.596 2.377C8.918 2.629 9.129 2.953 9.228 3.349L11.89 14L13.5 14C13.641 14 13.759 14.048 13.856 14.144C13.952 14.241 14 14.359 14 14.5C14 14.641 13.952 14.759 13.856 14.856C13.759 14.952 13.641 15 13.5 15L1.5 15C1.359 15 1.241 14.952 1.144 14.856C1.048 14.759 1 14.641 1 14.5C1 14.359 1.048 14.241 1.144 14.144C1.241 14.048 1.359 14 1.5 14L3.11 14L5.772 3.349C5.871 2.953 6.082 2.629 6.404 2.377ZM6.14 6L8.86 6L8.257 3.591C8.214 3.418 8.122 3.276 7.98 3.165C7.839 3.055 7.679 3 7.5 3C7.321 3 7.161 3.055 7.02 3.165C6.878 3.276 6.786 3.418 6.743 3.591L6.14 6ZM9.11 7L5.89 7L5.14 10L9.86 10L9.11 7ZM4.14 14L10.86 14L10.11 11L4.89 11L4.14 14Z" />
    </svg>
  );
}
Vue
Vue: see /icons/traffic-cone.md
Svelte
Svelte: see /icons/traffic-cone.md
HTML img
HTML img: see /icons/traffic-cone.md
CSS
CSS: see /icons/traffic-cone.md
Data URL
Data URL: see /icons/traffic-cone.md
Sprite
Sprite: see /icons/traffic-cone.md
SwiftUI
SwiftUI: see /icons/traffic-cone.md
Compose
Compose: see /icons/traffic-cone.md
Android XML
Android XML: see /icons/traffic-cone.md
Flutter
Flutter: see /icons/traffic-cone.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { TrafficConeIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
traffic cone
Alternatives
Also fits
  • roadwork: a lane closure or hazard on the road
  • road closed: a traffic cone, a hazard on the road
Not for
  • cone solid (use cone): the striped road cone means construction or roadworks (traffic-cone)
Tags
traffic-cone, cone, roadwork, construction, under-construction, caution, pylon
Category
Transportation
Component name
TrafficConeIcon
History
  • added
  • released in 0.1.0
  • changed in 0.2.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

More transportation icons

For agents

Metadata: /icons/traffic-cone.json · Markdown: /icons/traffic-cone.md · SVG: https://gentleface.com/svg/{style}/16/traffic-cone.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/traffic-cone.png