Motion icon · Free
Lock icon — animated SVG
A free lock 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 UAssetHover 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" overflow="visible"><style>.uah-lock g.uam,.uah-lock [class^=p]{transform-box:fill-box;transform-origin:center}:is(.uah-lock:hover,:hover>.uah-lock,:focus-visible>.uah-lock) .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 *{animation:none!important}}</style><g class="uam"><path pathLength="1" d="M4 13.5A3.5 3.5 0 0 1 7.5 10h9a3.5 3.5 0 0 1 3.5 3.5V18a3.5 3.5 0 0 1-3.5 3.5h-9A3.5 3.5 0 0 1 4 18z"/><g class="pa"><path pathLength="1" d="M8 10V7a4 4 0 0 1 8 0v3"/></g><path pathLength="1" d="M12 14.5V17"/></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" overflow="visible"><style>.ual-lock g.uam,.ual-lock [class^=p]{transform-box:fill-box;transform-origin:center}.ual-lock .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 *{animation:none!important}}</style><g class="uam"><path pathLength="1" d="M4 13.5A3.5 3.5 0 0 1 7.5 10h9a3.5 3.5 0 0 1 3.5 3.5V18a3.5 3.5 0 0 1-3.5 3.5h-9A3.5 3.5 0 0 1 4 18z"/><g class="pa"><path pathLength="1" d="M8 10V7a4 4 0 0 1 8 0v3"/></g><path pathLength="1" d="M12 14.5V17"/></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="M4 13.5A3.5 3.5 0 0 1 7.5 10h9a3.5 3.5 0 0 1 3.5 3.5V18a3.5 3.5 0 0 1-3.5 3.5h-9A3.5 3.5 0 0 1 4 18z"/><g class="pa"><path pathLength="1" d="M8 10V7a4 4 0 0 1 8 0v3"/></g><path pathLength="1" d="M12 14.5V17"/></svg>
Tags: line, lock, outline, security, stroke
More Security motion icons
UnlockKeyShieldShield CheckFingerprintInfoHelpAlert TriangleAlert CircleBanShield AlertFace IDKey RoundShield XSirenLock KeyholeShield LockPasswordLockUnlockKeyShieldShield CheckFingerprint