UAsset
Motion icon · Free

Pill icon — animated SVG

A free pill 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-pill" overflow="visible"><style>.uah-pill g.uam,.uah-pill [class^=p]{transform-box:fill-box;transform-origin:center}:is(.uah-pill:hover,:hover>.uah-pill,:focus-visible>.uah-pill) g.uam{animation:uaLwiggle 0.70s cubic-bezier(.65,0,.35,1) 0s 1 both}@keyframes uaLwiggle{0%,100%{transform:none}20%{transform:rotate(-12deg)}40%{transform:rotate(10deg)}60%{transform:rotate(-6deg)}80%{transform:rotate(3deg)}}@media (prefers-reduced-motion:reduce){.uah-pill *{animation:none!important}}</style><g class="uam"><path pathLength="1" d="m10.5 20.5 10-10a5 5 0 0 0-7-7l-10 10a5 5 0 0 0 7 7z"/><path pathLength="1" d="m8.5 8.5 7 7"/></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-pill" overflow="visible"><style>.ual-pill g.uam,.ual-pill [class^=p]{transform-box:fill-box;transform-origin:center}.ual-pill g.uam{animation:uaLwiggleL 1.82s cubic-bezier(.65,0,.35,1) 0s infinite}@keyframes uaLwiggleL{0.0%,38.0%{transform:none}7.6%{transform:rotate(-12deg)}15.2%{transform:rotate(10deg)}22.8%{transform:rotate(-6deg)}30.4%{transform:rotate(3deg)}}@media (prefers-reduced-motion:reduce){.ual-pill *{animation:none!important}}</style><g class="uam"><path pathLength="1" d="m10.5 20.5 10-10a5 5 0 0 0-7-7l-10 10a5 5 0 0 0 7 7z"/><path pathLength="1" d="m8.5 8.5 7 7"/></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="m10.5 20.5 10-10a5 5 0 0 0-7-7l-10 10a5 5 0 0 0 7 7z"/><path pathLength="1" d="m8.5 8.5 7 7"/></svg>

Tags: health, line, outline, pill, stroke

More Health motion icons

Heart PulseStethoscopeThermometerSyringeBandageBrainDumbbellHospital BedDentalEye CareNutritionFirst AidSleepDNAPillHeart PulseStethoscopeThermometerSyringeBandageBrainDumbbellHospital BedDental

Browse categories