gentleface

Gentleface › Transportation › traffic-light

traffic-light icon

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

Animated traffic-light-cycle · line-round

All three lamps dim. The bottom one comes on and goes out, then the middle, then the top, as a signal runs green, amber, red, and finally all three return to their drawn size.

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.2 s to 3 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="M12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.638 12.951 2.756 12.854 2.854L11 4.707L11 12C11 12.276 10.902 12.512 10.707 12.707C10.512 12.902 10.276 13 10 13L9 13L9 15L7 15L7 13L6 13C5.724 13 5.488 12.902 5.293 12.707C5.098 12.512 5 12.276 5 12L5 4.707L3.146 2.854C3.049 2.756 3 2.638 3 2.5C3 2.359 3.048 2.241 3.144 2.144C3.241 2.048 3.359 2 3.5 2L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L10 1C10.276 1 10.512 1.098 10.707 1.293C10.902 1.488 11 1.724 11 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144ZM10 2L6 2L6 12L10 12L10 2ZM8.707 3.293C8.902 3.488 9 3.724 9 4C9 4.276 8.902 4.512 8.707 4.707C8.512 4.902 8.276 5 8 5C7.724 5 7.488 4.902 7.293 4.707C7.098 4.512 7 4.276 7 4C7 3.724 7.098 3.488 7.293 3.293C7.488 3.098 7.724 3 8 3C8.276 3 8.512 3.098 8.707 3.293ZM8.707 6.293C8.902 6.488 9 6.724 9 7C9 7.276 8.902 7.512 8.707 7.707C8.512 7.902 8.276 8 8 8C7.724 8 7.488 7.902 7.293 7.707C7.098 7.512 7 7.276 7 7C7 6.724 7.098 6.488 7.293 6.293C7.488 6.098 7.724 6 8 6C8.276 6 8.512 6.098 8.707 6.293ZM7.293 9.293C7.488 9.098 7.724 9 8 9C8.276 9 8.512 9.098 8.707 9.293C8.902 9.488 9 9.724 9 10C9 10.276 8.902 10.512 8.707 10.707C8.512 10.902 8.276 11 8 11C7.724 11 7.488 10.902 7.293 10.707C7.098 10.512 7 10.276 7 10C7 9.724 7.098 9.488 7.293 9.293Z"/></svg>
React
// Gentleface "traffic-light" (line-round), MIT. https://gentleface.com/icons/traffic-light
import type { SVGProps } from 'react';

export function TrafficLightIcon(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="M12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.638 12.951 2.756 12.854 2.854L11 4.707L11 12C11 12.276 10.902 12.512 10.707 12.707C10.512 12.902 10.276 13 10 13L9 13L9 15L7 15L7 13L6 13C5.724 13 5.488 12.902 5.293 12.707C5.098 12.512 5 12.276 5 12L5 4.707L3.146 2.854C3.049 2.756 3 2.638 3 2.5C3 2.359 3.048 2.241 3.144 2.144C3.241 2.048 3.359 2 3.5 2L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L10 1C10.276 1 10.512 1.098 10.707 1.293C10.902 1.488 11 1.724 11 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144ZM10 2L6 2L6 12L10 12L10 2ZM8.707 3.293C8.902 3.488 9 3.724 9 4C9 4.276 8.902 4.512 8.707 4.707C8.512 4.902 8.276 5 8 5C7.724 5 7.488 4.902 7.293 4.707C7.098 4.512 7 4.276 7 4C7 3.724 7.098 3.488 7.293 3.293C7.488 3.098 7.724 3 8 3C8.276 3 8.512 3.098 8.707 3.293ZM8.707 6.293C8.902 6.488 9 6.724 9 7C9 7.276 8.902 7.512 8.707 7.707C8.512 7.902 8.276 8 8 8C7.724 8 7.488 7.902 7.293 7.707C7.098 7.512 7 7.276 7 7C7 6.724 7.098 6.488 7.293 6.293C7.488 6.098 7.724 6 8 6C8.276 6 8.512 6.098 8.707 6.293ZM7.293 9.293C7.488 9.098 7.724 9 8 9C8.276 9 8.512 9.098 8.707 9.293C8.902 9.488 9 9.724 9 10C9 10.276 8.902 10.512 8.707 10.707C8.512 10.902 8.276 11 8 11C7.724 11 7.488 10.902 7.293 10.707C7.098 10.512 7 10.276 7 10C7 9.724 7.098 9.488 7.293 9.293Z" />
    </svg>
  );
}
Vue
Vue: see /icons/traffic-light.md
Svelte
Svelte: see /icons/traffic-light.md
HTML img
HTML img: see /icons/traffic-light.md
CSS
CSS: see /icons/traffic-light.md
Data URL
Data URL: see /icons/traffic-light.md
Sprite
Sprite: see /icons/traffic-light.md
SwiftUI
SwiftUI: see /icons/traffic-light.md
Compose
Compose: see /icons/traffic-light.md
Android XML
Android XML: see /icons/traffic-light.md
Flutter
Flutter: see /icons/traffic-light.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 { TrafficLightIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
traffic light, traffic, traffic conditions, traffic signal, stoplight, traffic layer, traffic jam, congestion, live traffic
Alternatives
Tags
traffic-light, traffic-signal, stoplight, traffic, signal, intersection, road
Category
Transportation
Component name
TrafficLightIcon
History
  • added
  • released in 0.1.0
  • changed in 0.2.0
  • 20 px redrawn, 24 px redrawn, 20 px drawn, 24 px drawn, 16 px redrawn
Since
version 0.1.0

More transportation icons

For agents

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