UAsset
Motion icon · Free

Rainbow icon — animated SVG

A free rainbow 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-rainbow" overflow="visible"><style>.uah-rainbow g.uam,.uah-rainbow [class^=p]{transform-box:fill-box;transform-origin:center}:is(.uah-rainbow:hover,:hover>.uah-rainbow,:focus-visible>.uah-rainbow) .pa > *{stroke-dasharray:1 1;animation:uaLdraw 0.40s cubic-bezier(.65,0,.35,1) 0s 1 both}:is(.uah-rainbow:hover,:hover>.uah-rainbow,:focus-visible>.uah-rainbow) .pb > *{stroke-dasharray:1 1;animation:uaLdraw 0.45s cubic-bezier(.65,0,.35,1) 0.15s 1 both}:is(.uah-rainbow:hover,:hover>.uah-rainbow,:focus-visible>.uah-rainbow) .pc > *{stroke-dasharray:1 1;animation:uaLdraw 0.50s cubic-bezier(.65,0,.35,1) 0.3s 1 both}@keyframes uaLdraw{0%{stroke-dashoffset:1}100%{stroke-dashoffset:0}}@media (prefers-reduced-motion:reduce){.uah-rainbow *{animation:none!important}}</style><g class="uam"><g class="pc"><path pathLength="1" d="M22 17a10 10 0 0 0-20 0"/></g><g class="pb"><path pathLength="1" d="M6 17a6 6 0 0 1 12 0"/></g><g class="pa"><path pathLength="1" d="M10 17a2 2 0 0 1 4 0"/></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-rainbow" overflow="visible"><style>.ual-rainbow g.uam,.ual-rainbow [class^=p]{transform-box:fill-box;transform-origin:center}.ual-rainbow .pa > *{stroke-dasharray:1 1;animation:uaLdrawL 1.04s cubic-bezier(.65,0,.35,1) 0s infinite}.ual-rainbow .pb > *{stroke-dasharray:1 1;animation:uaLdrawL 1.17s cubic-bezier(.65,0,.35,1) 0.15s infinite}.ual-rainbow .pc > *{stroke-dasharray:1 1;animation:uaLdrawL 1.30s cubic-bezier(.65,0,.35,1) 0.3s infinite}@keyframes uaLdrawL{0.0%{stroke-dashoffset:1}38.0%{stroke-dashoffset:0}}@media (prefers-reduced-motion:reduce){.ual-rainbow *{animation:none!important}}</style><g class="uam"><g class="pc"><path pathLength="1" d="M22 17a10 10 0 0 0-20 0"/></g><g class="pb"><path pathLength="1" d="M6 17a6 6 0 0 1 12 0"/></g><g class="pa"><path pathLength="1" d="M10 17a2 2 0 0 1 4 0"/></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"><g class="pc"><path pathLength="1" d="M22 17a10 10 0 0 0-20 0"/></g><g class="pb"><path pathLength="1" d="M6 17a6 6 0 0 1 12 0"/></g><g class="pa"><path pathLength="1" d="M10 17a2 2 0 0 1 4 0"/></g></svg>

Tags: line, outline, rainbow, stroke, weather

More Weather motion icons

SunMoonCloud RainSnowflakeZapFlameDropletLeafGlobeMap PinMapCompassNavigationCloud SunWindUmbrellaCloud LightningSunriseHeatCloud SnowCloud DrizzleFogSunsetMoon Star

Browse categories