# Airplay animated icon

> Airplay animated icon with a loop interaction for React and shadcn/ui. Download the Lottie JSON or SVG, free under MIT.

Use the Airplay icon for casting and AirPlay buttons: it loops continuously and takes 1 s. Looping icons typically show loading spinners, active alerts, a ringing bell or a scroll-down hint.

## Facts

- Interaction: [Loop](https://useanimations.com/interactions/loop). Plays continuously; stays on the static first frame when reduced motion is preferred.
- Category: [Media](https://useanimations.com/categories/media)
- Duration: 1.00 s at 30 fps
- Artboard: 32 × 32 px
- Lottie size: 2.6 kB
- License: MIT, attribution optional ([Licencing & Terms](https://useanimations.com/licencing-and-terms))

## Files

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

## React

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

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

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

## shadcn/ui

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

```tsx
import { AnimatedAirplay } from '@/components/animations/airplay';

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

## HTML and lottie-web

```html
<div id="airplay-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('airplay-icon');
  const a = lottie.loadAnimation({ container: el, renderer: 'svg', loop: true, autoplay: false, path: 'https://useanimations.com/icons/airplay.json' });
  const motion = matchMedia('(prefers-reduced-motion: reduce)');
  a.addEventListener('DOMLoaded', () => { a.goToAndStop(0, true); if (!motion.matches) a.play(); });
  motion.addEventListener('change', (event) => { if (event.matches) a.goToAndStop(0, true); else a.play(); });
</script>
```

## FAQ

### Can I pause the Airplay loop?

It pauses by itself while scrolled out of view and stays on its first frame when reduced motion is preferred or autoplay={false} is set. To show it only while something is pending, render it conditionally.

### Is Airplay decorative?

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

### Can Airplay loop only while hovered instead?

Yes: pass interaction="hover-loop". It then loops while hovered, finishes the current cycle after mouseleave and stays static when reduced motion is preferred.

## Related icons

- [Aperture](https://useanimations.com/icons/aperture) (hover-replay)
- [Fast Forward](https://useanimations.com/icons/fast-forward) (hover-replay)
- [Disc](https://useanimations.com/icons/disc) (hover-replay)
- [Play/Pause](https://useanimations.com/icons/play-pause) (click-toggle)
- [Skip back](https://useanimations.com/icons/skip-back) (click-replay)
- [Volume](https://useanimations.com/icons/volume) (click-toggle)
- [Music](https://useanimations.com/icons/music) (hover-replay)
- [Radio](https://useanimations.com/icons/radio) (hover-replay)
- [Headphones](https://useanimations.com/icons/headphones) (hover-replay)
- [Video Off](https://useanimations.com/icons/video-off) (click-toggle)
- [Camera Off](https://useanimations.com/icons/camera-off) (click-toggle)
- [Microphone V2](https://useanimations.com/icons/microphone-v2) (click-toggle)

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