UAsset
Motion icon · Free

Pencil icon — animated SVG

A free pencil 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-pencil" overflow="visible"><style>.uah-pencil g.uam,.uah-pencil [class^=p]{transform-box:fill-box;transform-origin:center}:is(.uah-pencil:hover,:hover>.uah-pencil,:focus-visible>.uah-pencil) g.uam{transform-origin:0% 100%;animation:uaLwrite 0.90s cubic-bezier(.65,0,.35,1) 0s 1 both}@keyframes uaLwrite{0%,100%{transform:none}20%{transform:translate(-1.2px,1px) rotate(-7deg)}40%{transform:translate(1.2px,0) rotate(5deg)}60%{transform:translate(-.8px,1px) rotate(-4deg)}80%{transform:translate(.6px,0) rotate(2deg)}}@media (prefers-reduced-motion:reduce){.uah-pencil *{animation:none!important}}</style><g class="uam"><path pathLength="1" d="M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4z"/><path pathLength="1" d="m14.5 5.5 3 3"/></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-pencil" overflow="visible"><style>.ual-pencil g.uam,.ual-pencil [class^=p]{transform-box:fill-box;transform-origin:center}.ual-pencil g.uam{transform-origin:0% 100%;animation:uaLwriteL 2.34s cubic-bezier(.65,0,.35,1) 0s infinite}@keyframes uaLwriteL{0.0%,38.0%{transform:none}7.6%{transform:translate(-1.2px,1px) rotate(-7deg)}15.2%{transform:translate(1.2px,0) rotate(5deg)}22.8%{transform:translate(-.8px,1px) rotate(-4deg)}30.4%{transform:translate(.6px,0) rotate(2deg)}}@media (prefers-reduced-motion:reduce){.ual-pencil *{animation:none!important}}</style><g class="uam"><path pathLength="1" d="M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4z"/><path pathLength="1" d="m14.5 5.5 3 3"/></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="M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4z"/><path pathLength="1" d="m14.5 5.5 3 3"/></svg>

Tags: actions, line, outline, pencil, stroke

More Actions motion icons

PlusMinusCloseCheckCheck CircleClose CirclePlus CirclePlus SquareEditTrashCopyDownloadUploadShareShare UpLinkPinBookmarkHeartStarThumbs UpFlagSendLog In

Browse categories