UAsset
Motion icon · Free

Traffic Light icon — animated SVG

A free traffic light motion icon that acts out its meaning. The animation is pure CSS inside the SVG, so it works in any website or app without Lottie or JavaScript. 24px grid, 2px stroke, round caps. Free for personal and commercial use.

Open in UAsset

Hover SVG code (plays when hovered)

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="uah-traffic-light" overflow="visible"><style>.uah-traffic-light g.uam,.uah-traffic-light [class^=p]{transform-box:fill-box;transform-origin:center}:is(.uah-traffic-light:hover,:hover>.uah-traffic-light,:focus-visible>.uah-traffic-light) .pa{animation:uaLpop2 0.40s cubic-bezier(.34,1.56,.64,1) 0s 1 both}:is(.uah-traffic-light:hover,:hover>.uah-traffic-light,:focus-visible>.uah-traffic-light) .pb{animation:uaLpop2 0.40s cubic-bezier(.34,1.56,.64,1) 0.1s 1 both}:is(.uah-traffic-light:hover,:hover>.uah-traffic-light,:focus-visible>.uah-traffic-light) .pc{animation:uaLpop2 0.40s cubic-bezier(.34,1.56,.64,1) 0.2s 1 both}@keyframes uaLpop2{0%,100%{transform:none}40%{transform:scale(1.25)}70%{transform:scale(.94)}}@media (prefers-reduced-motion:reduce){.uah-traffic-light *{animation:none!important}}</style><g class="uam"><rect pathLength="1" x="7" y="2" width="10" height="20" rx="3"/><g class="pa"><circle pathLength="1" cx="12" cy="7" r="1.5"/></g><g class="pb"><circle pathLength="1" cx="12" cy="12" r="1.5"/></g><g class="pc"><circle pathLength="1" cx="12" cy="17" r="1.5"/></g></g></svg>

Looping SVG code

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="ual-traffic-light" overflow="visible"><style>.ual-traffic-light g.uam,.ual-traffic-light [class^=p]{transform-box:fill-box;transform-origin:center}.ual-traffic-light .pa{animation:uaLpop2L 1.04s cubic-bezier(.34,1.56,.64,1) 0s infinite}.ual-traffic-light .pb{animation:uaLpop2L 1.04s cubic-bezier(.34,1.56,.64,1) 0.1s infinite}.ual-traffic-light .pc{animation:uaLpop2L 1.04s cubic-bezier(.34,1.56,.64,1) 0.2s infinite}@keyframes uaLpop2L{0.0%,38.0%{transform:none}15.2%{transform:scale(1.25)}26.6%{transform:scale(.94)}}@media (prefers-reduced-motion:reduce){.ual-traffic-light *{animation:none!important}}</style><g class="uam"><rect pathLength="1" x="7" y="2" width="10" height="20" rx="3"/><g class="pa"><circle pathLength="1" cx="12" cy="7" r="1.5"/></g><g class="pb"><circle pathLength="1" cx="12" cy="12" r="1.5"/></g><g class="pc"><circle pathLength="1" cx="12" cy="17" r="1.5"/></g></g></svg>

Static SVG code

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect pathLength="1" x="7" y="2" width="10" height="20" rx="3"/><g class="pa"><circle pathLength="1" cx="12" cy="7" r="1.5"/></g><g class="pb"><circle pathLength="1" cx="12" cy="12" r="1.5"/></g><g class="pc"><circle pathLength="1" cx="12" cy="17" r="1.5"/></g></svg>

Tags: light, line, outline, stroke, traffic, transport

More Transport motion icons

CarBikeBusTrainPlaneShipAnchorFuelRouteSignpostParkingCarBikeBusTrainPlaneShipAnchorFuelRouteSignpostParkingTraffic LightCar

Browse categories