UAsset
Motion icon · Free

Lock Keyhole icon — animated SVG

A free lock keyhole 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-lock-keyhole" overflow="visible"><style>.uah-lock-keyhole g.uam,.uah-lock-keyhole [class^=p]{transform-box:fill-box;transform-origin:center}:is(.uah-lock-keyhole:hover,:hover>.uah-lock-keyhole,:focus-visible>.uah-lock-keyhole) .pa{animation:uaLshackle 0.80s cubic-bezier(.65,0,.35,1) 0s 1 both}@keyframes uaLshackle{0%,100%{transform:none}35%,65%{transform:translateY(-3px)}}@media (prefers-reduced-motion:reduce){.uah-lock-keyhole *{animation:none!important}}</style><g class="uam"><rect pathLength="1" x="3" y="11" width="18" height="11" rx="3.5"/><circle pathLength="1" cx="12" cy="16" r="1"/><g class="pa"><path pathLength="1" d="M7 11V7a5 5 0 0 1 10 0v4"/></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-lock-keyhole" overflow="visible"><style>.ual-lock-keyhole g.uam,.ual-lock-keyhole [class^=p]{transform-box:fill-box;transform-origin:center}.ual-lock-keyhole .pa{animation:uaLshackleL 2.08s cubic-bezier(.65,0,.35,1) 0s infinite}@keyframes uaLshackleL{0.0%,38.0%{transform:none}13.3%,24.7%{transform:translateY(-3px)}}@media (prefers-reduced-motion:reduce){.ual-lock-keyhole *{animation:none!important}}</style><g class="uam"><rect pathLength="1" x="3" y="11" width="18" height="11" rx="3.5"/><circle pathLength="1" cx="12" cy="16" r="1"/><g class="pa"><path pathLength="1" d="M7 11V7a5 5 0 0 1 10 0v4"/></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"><rect pathLength="1" x="3" y="11" width="18" height="11" rx="3.5"/><circle pathLength="1" cx="12" cy="16" r="1"/><g class="pa"><path pathLength="1" d="M7 11V7a5 5 0 0 1 10 0v4"/></g></svg>

Tags: keyhole, line, lock, outline, security, stroke

More Security motion icons

LockUnlockKeyShieldShield CheckFingerprintInfoHelpAlert TriangleAlert CircleBanShield AlertFace IDKey RoundShield XSirenShield LockPasswordLockUnlockKeyShieldShield CheckFingerprint

Browse categories