---
title: "Fog animated icon"
description: "Fog animated icon (Weather). Light: the three fog layers drift 0.8 units in alternating directions and return. Strong: each layer is pulled back, slides 2 units in its direction and eases home."
canonical: https://generativeicons.com/icons/fog/
---

# Fog animated icon

Light: the three fog layers drift 0.8 units in alternating directions and return. Strong: each layer is pulled back, slides 2 units in its direction and eases home.

- Id: `fog`
- Category: Weather
- Search terms: foggy, mist, misty, haze, hazy, smog, low visibility, fog bank
- 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/fog.lottie (dotLottie, 5159 bytes, sha256 1fc9141192bf04e07205f3853c016048461f5cd1bdd92ef01690b97555f3a553)
- License: MIT

## Install

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

## React

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

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