UAsset
Motion icon · Free

Close icon — animated SVG

A free close 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-x" overflow="visible"><style>.uah-x g.uam,.uah-x [class^=p]{transform-box:fill-box;transform-origin:center}:is(.uah-x:hover,:hover>.uah-x,:focus-visible>.uah-x) g.uam{animation:uaLr90 0.55s cubic-bezier(.34,1.56,.64,1) 0s 1 both}@keyframes uaLr90{0%{transform:rotate(0)}100%{transform:rotate(90deg)}}@media (prefers-reduced-motion:reduce){.uah-x *{animation:none!important}}</style><g class="uam"><path pathLength="1" d="M18 6 6 18"/><path pathLength="1" d="M6 6l12 12"/></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-x" overflow="visible"><style>.ual-x g.uam,.ual-x [class^=p]{transform-box:fill-box;transform-origin:center}.ual-x g.uam{animation:uaLr90L 1.43s cubic-bezier(.34,1.56,.64,1) 0s infinite}@keyframes uaLr90L{0.0%{transform:rotate(0)}38.0%{transform:rotate(90deg)}}@media (prefers-reduced-motion:reduce){.ual-x *{animation:none!important}}</style><g class="uam"><path pathLength="1" d="M18 6 6 18"/><path pathLength="1" d="M6 6l12 12"/></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="M18 6 6 18"/><path pathLength="1" d="M6 6l12 12"/></svg>

Tags: actions, line, outline, stroke, x

More Actions motion icons

PlusMinusCheckCheck CircleClose CirclePlus CirclePlus SquarePencilEditTrashCopyDownloadUploadShareShare UpLinkPinBookmarkHeartStarThumbs UpFlagSendLog In

Browse categories