---
title: "Moon phase animated icon"
description: "Moon phase animated icon (Weather). Light: the terminator sweeps from a waxing crescent through the half moon to a waxing gibbous. Strong: the moon tips back, the terminator sweeps in 0.28 s as the moon swings through 9° and settles. The phase is retained; preview reset rearms."
canonical: https://generativeicons.com/icons/moon-phase/
---

# Moon phase animated icon

Light: the terminator sweeps from a waxing crescent through the half moon to a waxing gibbous. Strong: the moon tips back, the terminator sweeps in 0.28 s as the moon swings through 9° and settles. The phase is retained; preview reset rearms.

- Id: `moon-phase`
- Category: Weather
- Search terms: lunar phase, lunar cycle, moon cycle, crescent, half moon, waxing, waning, gibbous, quarter moon, lunar calendar, astronomy
- 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/moon-phase.lottie (dotLottie, 12922 bytes, sha256 01b9ea533e7e6862bbf4e24e345e0c74f09ad4e32befe3deb5f163cf83adb7db)
- License: MIT

## Install

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

## React

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

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