---
title: "Badge unlock animated icon"
description: "Badge unlock animated icon (Gamification & rewards). Unlock: the shackle lifts 1.6 units and swings open 25°, the padlock fades and a star pops into the badge. Strong: a snap lift with overshoot, a hard swing and a bigger star pop. Reverse: the star shrinks away, the lock returns and the shackle drops shut."
canonical: https://generativeicons.lottiefiles.com/icons/badge-unlock/
---

# Badge unlock animated icon

Unlock: the shackle lifts 1.6 units and swings open 25°, the padlock fades and a star pops into the badge. Strong: a snap lift with overshoot, a hard swing and a bigger star pop. Reverse: the star shrinks away, the lock returns and the shackle drops shut.

- Id: `badge-unlock`
- Category: Gamification & rewards
- Search terms: unlocked, unlock reward, unlock achievement, earn badge, badge earned, reward unlocked, locked badge, emblem, insignia, collectible
- Two states: locked to unlocked, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.lottiefiles.com/assets/badge-unlock.lottie (dotLottie, 30341 bytes, sha256 9a4df9b09d6ef5b5960cc7c2465ce1c03149b377c97cf8409e727cd2046b8c00)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add badge-unlock
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/badge-unlock.mjs';

export function BadgeUnlockIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/badge-unlock.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.lottiefiles.com/icons/badge-unlock/ · https://generativeicons.lottiefiles.com/api/icons/badge-unlock
