---
title: "Rainbow animated icon"
description: "Rainbow animated icon (Weather). Light: three arcs draw over the horizon from the left base, outer first, in a calm stagger. Strong: they sweep over in a tight burst and the finished bands pop outward half a unit and settle. The rainbow is retained; preview reset rearms."
canonical: https://generativeicons.com/icons/rainbow/
---

# Rainbow animated icon

Light: three arcs draw over the horizon from the left base, outer first, in a calm stagger. Strong: they sweep over in a tight burst and the finished bands pop outward half a unit and settle. The rainbow is retained; preview reset rearms.

- Id: `rainbow`
- Category: Weather
- Search terms: pride, lgbtq, lgbt, colorful, colourful, spectrum, color spectrum, after the rain, hope, colors, colours
- Two states: prepared to result, 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/rainbow.lottie (dotLottie, 22003 bytes, sha256 6de54943dd9714d947a69cd23e46d6a52220ca818ecd529f469755fba82b2a7a)
- License: MIT

## Install

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

## React

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

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