---
title: "Treasure chest animated icon"
description: "Treasure chest animated icon (Gamification & rewards). Open: the lid pivots 23 degrees at its left hinge and exposes the full rim. Strong: a brief latch press leads into a 27-degree swing and settles open. Close: a separate return seats the lid; Strong has a small contact rebound."
canonical: https://generativeicons.com/icons/treasure-chest/
---

# Treasure chest animated icon

Open: the lid pivots 23 degrees at its left hinge and exposes the full rim. Strong: a brief latch press leads into a 27-degree swing and settles open. Close: a separate return seats the lid; Strong has a small contact rebound.

- Id: `treasure-chest`
- Category: Gamification & rewards
- Search terms: loot, loot box, lootbox, reward box, mystery box, pirate, pirate chest, booty, bounty, coffer, gold, jackpot
- Two states: closed to open, 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.com/assets/treasure-chest.lottie (dotLottie, 8231 bytes, sha256 0bf4926efdfe063badf46cefcc711f5b97f2386ad4cf353cdf841b3e7087ac3a)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add treasure-chest
```

## React

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

export function TreasureChestIcon() {
  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/treasure-chest.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.com/icons/treasure-chest/ · https://generativeicons.com/api/icons/treasure-chest
