Skip to content
Icon Pantry

Animated lock icon

The lock icon with a shake animation. Try other motions, change the color and speed, then download an animated SVG for the web, or a GIF or WebP for email, Slack, Notion and slides.

16
20
24
32
48
Style
Animation

Errors, wrong password, delete and warnings.

Color
GIF and WebP size

Animated SVG for websites and apps (plays in browsers, stops for people who prefer reduced motion). GIF for email, Slack, Notion and slides. WebP for sharp, small web animations. Free for personal and commercial use. No attribution required.

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" overflow="visible" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><style>@keyframes ip-shake{0%{transform:translate(0px,0px) rotate(0deg) scale(1,1);opacity:1}6%{transform:translate(-1.6px,0px) rotate(0deg) scale(1,1);opacity:1}12%{transform:translate(1.6px,0px) rotate(0deg) scale(1,1);opacity:1}18%{transform:translate(-1.2px,0px) rotate(0deg) scale(1,1);opacity:1}24%{transform:translate(1.2px,0px) rotate(0deg) scale(1,1);opacity:1}30%{transform:translate(-0.6px,0px) rotate(0deg) scale(1,1);opacity:1}36%{transform:translate(0px,0px) rotate(0deg) scale(1,1);opacity:1}100%{transform:translate(0px,0px) rotate(0deg) scale(1,1);opacity:1}}.ip-shake{animation:ip-shake 1.6s cubic-bezier(.65,0,.35,1) infinite;transform-box:view-box;transform-origin:12px 12px}@media (prefers-reduced-motion:reduce){.ip-shake,.ip-shake .ip-d{animation:none!important;stroke-dashoffset:0!important}}</style><g class="ip-shake"><rect width="16" height="10" x="4" y="11" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></g></svg>