Click to toggle
- Interaction
- Click toggle
- Duration
- 0.33 s
- Artboard
- 32 × 32 px
- Lottie size
- 1.6 kB
Lock / Unlock
Toggles between two states on click, or switches immediately when reduced motion is preferred. Free under the MIT license.
actionlockpasswordsecurityunlock
React
npm install react-useanimationsimport UseAnimations from 'react-useanimations';
import lock from 'react-useanimations/lib/lock';
<UseAnimations animation={lock} size={32} />shadcn/ui
npx shadcn@latest add https://useanimations.com/r/lock.jsonimport { AnimatedLock } from '@/components/animations/lock';
<AnimatedLock size={24} />Files
https://useanimations.com/icons/lock.json # Lottie JSON
https://useanimations.com/icons/lock.zip # Lottie JSON + static SVGsThe animation as Lottie JSON and a ZIP with it and the SVGs. See Files & icons.json.