UAsset
Motion icon · Free

Ruler icon — animated SVG

A free ruler 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-ruler" overflow="visible"><style>.uah-ruler g.uam,.uah-ruler [class^=p]{transform-box:fill-box;transform-origin:center}:is(.uah-ruler:hover,:hover>.uah-ruler,:focus-visible>.uah-ruler) g.uam{animation:uaLswipe 0.70s cubic-bezier(.2,.8,.2,1) 0s 1 both}@keyframes uaLswipe{0%,100%{transform:none}30%{transform:translateX(-2px) rotate(-6deg)}60%{transform:translateX(2px) rotate(3deg)}}@media (prefers-reduced-motion:reduce){.uah-ruler *{animation:none!important}}</style><g class="uam"><path pathLength="1" d="M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.4 2.4 0 0 1 0-3.4l2.6-2.6a2.4 2.4 0 0 1 3.4 0z"/><path pathLength="1" d="m14.5 12.5 2-2M11.5 9.5l2-2M8.5 6.5l2-2M17.5 15.5l2-2"/></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-ruler" overflow="visible"><style>.ual-ruler g.uam,.ual-ruler [class^=p]{transform-box:fill-box;transform-origin:center}.ual-ruler g.uam{animation:uaLswipeL 1.82s cubic-bezier(.2,.8,.2,1) 0s infinite}@keyframes uaLswipeL{0.0%,38.0%{transform:none}11.4%{transform:translateX(-2px) rotate(-6deg)}22.8%{transform:translateX(2px) rotate(3deg)}}@media (prefers-reduced-motion:reduce){.ual-ruler *{animation:none!important}}</style><g class="uam"><path pathLength="1" d="M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.4 2.4 0 0 1 0-3.4l2.6-2.6a2.4 2.4 0 0 1 3.4 0z"/><path pathLength="1" d="m14.5 12.5 2-2M11.5 9.5l2-2M8.5 6.5l2-2M17.5 15.5l2-2"/></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"><path pathLength="1" d="M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.4 2.4 0 0 1 0-3.4l2.6-2.6a2.4 2.4 0 0 1 3.4 0z"/><path pathLength="1" d="m14.5 12.5 2-2M11.5 9.5l2-2M8.5 6.5l2-2M17.5 15.5l2-2"/></svg>

Tags: line, outline, ruler, stroke, tools

More Tools motion icons

WrenchHammerMagnetScanToolboxDrillTape MeasureWrenchHammerRulerMagnetScanToolboxDrillTape MeasureWrenchHammerRulerMagnetScanToolboxDrillTape Measure

Browse categories