---
title: "Confetti animated icon"
description: "Confetti animated icon (Onboarding & tips). Light: the scattered pieces drift and turn gently in place. Strong: the lower ribbon stays visible while the other pieces burst from the bottom centre to their resting places with a full spin and fade back in."
canonical: https://generativeicons.com/icons/confetti/
---

# Confetti animated icon

Light: the scattered pieces drift and turn gently in place. Strong: the lower ribbon stays visible while the other pieces burst from the bottom centre to their resting places with a full spin and fade back in.

- Id: `confetti`
- Category: Onboarding & tips
- Search terms: celebrate, celebration, party, party popper, tada, congratulations, congrats, hooray, yay, festive, well done
- 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/confetti.lottie (dotLottie, 17380 bytes, sha256 ba1684ea81b897bc4733fa28a0994e702d229b6a20ed9b4ad5f91b9a8f515307)
- License: MIT

## Install

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

## React

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

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