---
title: "Dice animated icon"
description: "Dice animated icon (Gamification & rewards). The die is rolled. Light: it is tossed 2.4 units, tumbles a half turn in the air (the three-pip diagonal lands on itself), lands flat with a hit and one small bounce, and two impact dashes flash at its feet. Strong: a dip to gather, a 3.2-unit toss with a full tumble, a hard landing with dashes and two decaying bounces with a small rock. The die stays rigid."
canonical: https://generativeicons.com/icons/dice/
---

# Dice animated icon

The die is rolled. Light: it is tossed 2.4 units, tumbles a half turn in the air (the three-pip diagonal lands on itself), lands flat with a hit and one small bounce, and two impact dashes flash at its feet. Strong: a dip to gather, a 3.2-unit toss with a full tumble, a hard landing with dashes and two decaying bounces with a small rock. The die stays rigid.

- Id: `dice`
- Category: Gamification & rewards
- Search terms: die, roll, random, randomize, randomise, chance, luck, lucky, gamble, gambling, board game, casino, tabletop
- One action, back to rest
- 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/dice.lottie (dotLottie, 4059 bytes, sha256 2911e15150beaf192e0c9b6d61bad176468dddbde621b216d2a365bc73afd818)
- License: MIT

## Install

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

## React

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

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