---
title: "Sunset animated icon"
description: "Sunset animated icon (Weather). Light: the sun sinks from high in the sky to a half disc on the horizon while its long rays shorten; the down chevron nudges down. Strong: the sun lifts slightly first, drops 0.9 units past the half disc and settles. Result retained; preview reset rearms."
canonical: https://generativeicons.lottiefiles.com/icons/sunset/
---

# Sunset animated icon

Light: the sun sinks from high in the sky to a half disc on the horizon while its long rays shorten; the down chevron nudges down. Strong: the sun lifts slightly first, drops 0.9 units past the half disc and settles. Result retained; preview reset rearms.

- Id: `sunset`
- Category: Weather
- Search terms: dusk, evening, sundown, sun down, twilight, nightfall, golden hour, end of day, good evening
- 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.lottiefiles.com/assets/sunset.lottie (dotLottie, 22024 bytes, sha256 ca05f7e2f06552e7c3ca99c27ea4661cb83c12bc84ada0030b82e2cf12a818d8)
- License: MIT

## Install

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

## React

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

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