# Cloud animated icon

> Add the Cloud micro animation to React with react-useanimations or shadcn. It loops while hovered; free MIT Lottie and SVG files.

The Cloud animated icon loops while hovered in 1.6 s and pairs with Cloud Drizzle and Cloud Lightning in the weather set. Hover loop icons typically mark social links, community invites, portfolio links and language pickers.

## Facts

- Interaction: [Hover loop](https://useanimations.com/interactions/hover-loop). Loops while hovered, finishes the current cycle after mouseleave and stays static when reduced motion is preferred.
- Category: [Weather](https://useanimations.com/categories/weather)
- Duration: 1.60 s at 30 fps
- Artboard: 32 × 32 px
- Lottie size: 1.2 kB
- License: MIT, attribution optional ([Licencing & Terms](https://useanimations.com/licencing-and-terms))

## Files

- Lottie JSON: https://useanimations.com/icons/cloud.json
- Static SVG (cloud): https://useanimations.com/icons/cloud/cloud.svg
- ZIP (Lottie JSON and SVGs): https://useanimations.com/icons/cloud.zip
- shadcn registry item: https://useanimations.com/r/cloud.json
- Web page: https://useanimations.com/icons/cloud

## React

```bash
npm install react-useanimations
```

```jsx
import UseAnimations from 'react-useanimations';
import cloud from 'react-useanimations/lib/cloud';

<UseAnimations animation={cloud} size={32} />
```

## shadcn/ui

```bash
npx shadcn@latest add https://useanimations.com/r/cloud.json
```

```tsx
import { AnimatedCloud } from '@/components/animations/cloud';

<AnimatedCloud size={24} />
```

## HTML and lottie-web

```html
<div id="cloud-icon" style="width: 48px; height: 48px"></div>

<script src="https://cdn.jsdelivr.net/npm/lottie-web@5.13.0/build/player/lottie_light.min.js"></script>
<script>
  const el = document.getElementById('cloud-icon');
  const a = lottie.loadAnimation({ container: el, renderer: 'svg', loop: true, autoplay: false, path: 'https://useanimations.com/icons/cloud.json' });
  const motion = matchMedia('(prefers-reduced-motion: reduce)');
  let stopAfterCycle = false;
  a.addEventListener('loopComplete', () => { if (stopAfterCycle) { stopAfterCycle = false; a.goToAndStop(0, true); } });
  el.addEventListener('mouseenter', () => { stopAfterCycle = false; if (!motion.matches) a.play(); });
  el.addEventListener('mouseleave', () => { stopAfterCycle = !motion.matches && !a.isPaused; if (!stopAfterCycle) a.goToAndStop(0, true); });
</script>
```

## FAQ

### Does Cloud stop as soon as the pointer leaves?

It finishes the cycle it is in (at most 1.6 s) and then rests on its first frame, so it never freezes mid-motion. Taps on touch screens are ignored, but keyboard focus plays it.

### Will screen readers read the Cloud icon?

By default it is aria-hidden. Pass aria-label="Cloud" to announce it as an image, or leave it hidden when the link or button it sits in has its own text.

### Can Cloud loop all the time instead?

Yes: pass interaction="loop". It then plays continuously; stays on the static first frame when reduced motion is preferred.

## Related icons

- [Cloud Drizzle](https://useanimations.com/icons/cloud-drizzle) (hover-replay)
- [Cloud Lightning](https://useanimations.com/icons/cloud-lightning) (hover-replay)
- [Cloud Off](https://useanimations.com/icons/cloud-off) (click-toggle)
- [Cloud Rain](https://useanimations.com/icons/cloud-rain) (hover-replay)
- [Cloud Snow](https://useanimations.com/icons/cloud-snow) (hover-replay)
- [Download Cloud](https://useanimations.com/icons/download-cloud) (click-replay)
- [Upload Cloud](https://useanimations.com/icons/upload-cloud) (click-replay)
- [Sunset](https://useanimations.com/icons/sunset) (hover-replay)
- [Umbrella](https://useanimations.com/icons/umbrella) (hover-replay)
- [Thermometer](https://useanimations.com/icons/thermometer) (hover-replay)
- [Sun](https://useanimations.com/icons/sun) (hover-replay)
- [Wind](https://useanimations.com/icons/wind) (hover-replay)

[All weather icons](https://useanimations.com/categories/weather) · [All icons](https://useanimations.com/icons)
