---
title: "Sparkle animated icon"
description: "Sparkle animated icon (Onboarding & tips). Light: the large sparkle twinkles (scale 0.86, 10° turn) while the small one dims. Strong: it shrinks to 0.6, bursts to 1.12 with a 40° twist and settles; the small sparkle blinks out and pops back."
canonical: https://generativeicons.com/icons/sparkle/
---

# Sparkle animated icon

Light: the large sparkle twinkles (scale 0.86, 10° turn) while the small one dims. Strong: it shrinks to 0.6, bursts to 1.12 with a 40° twist and settles; the small sparkle blinks out and pops back.

- Id: `sparkle`
- Category: Onboarding & tips
- Search terms: sparkles, magic, shine, shiny, glitter, twinkle, glimmer, ai, ai magic, enhance
- 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/sparkle.lottie (dotLottie, 12864 bytes, sha256 e735b47c4bf665453a2855a6b16d513bed15f4056f89d1dde24aeab9eb5b6c6f)
- License: MIT

## Install

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

## React

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

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