---
title: "UV index animated icon"
description: "UV index animated icon (Weather). Light: the three meter dashes fill left to right while the sun's rays lengthen with the reading. Strong: the sun pulses first, the dashes fill in a quick sequence and the rays flare past their final length and settle. The reading is retained; preview reset rearms."
canonical: https://generativeicons.com/icons/uv-index/
---

# UV index animated icon

Light: the three meter dashes fill left to right while the sun's rays lengthen with the reading. Strong: the sun pulses first, the dashes fill in a quick sequence and the rays flare past their final length and settle. The reading is retained; preview reset rearms.

- Id: `uv-index`
- Category: Weather
- Search terms: ultraviolet, uv rays, sun exposure, sun protection, sunscreen, sunburn, spf, solar radiation, sun strength, sun intensity
- 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/uv-index.lottie (dotLottie, 16464 bytes, sha256 fdb2f428f4e816e55563eec03aa9ad4dd11dde268d08ba6f680d719290d2d021)
- License: MIT

## Install

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

## React

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

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