# Repeat animated icon

> Add the Repeat micro animation to React with react-useanimations or shadcn. It replays on every click; free MIT Lottie and SVG files.

The Repeat animated icon replays on every click in 1.33 s, a good fit for playlist controls for skip, repeat and shuffle. Click icons typically confirm send, save, refresh, download, add-to-cart and formatting buttons.

## Facts

- Interaction: [Click replay](https://useanimations.com/interactions/click-replay). Replays once from the start on every click unless reduced motion is preferred.
- Category: [Media](https://useanimations.com/categories/media)
- Duration: 1.33 s at 30 fps
- Artboard: 32 × 32 px
- Lottie size: 1.3 kB
- License: MIT, attribution optional ([Licencing & Terms](https://useanimations.com/licencing-and-terms))

## Files

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

## React

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

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

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

## shadcn/ui

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

```tsx
import { AnimatedRepeat } from '@/components/animations/repeat';

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

## HTML and lottie-web

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

## FAQ

### What happens if Repeat is clicked again before it finishes?

No queue: every click restarts the 1.33 s run from the first frame. With reduced motion preferred, clicks still reach your onClick but the icon stays still.

### How do I make Repeat an accessible button?

Put its events on a real button with the render prop: render={(events, icon) => <button aria-label="Repeat" {...events}><span {...icon} /></button>}. The animation itself stays aria-hidden.

### Can Repeat play on hover instead?

Yes: pass interaction="hover-replay". It then plays once on mouseenter unless reduced motion is preferred. Leaving does not stop it; entering during playback does not restart it.

## Related icons

- [Camera](https://useanimations.com/icons/camera) (click-replay)
- [Skip back](https://useanimations.com/icons/skip-back) (click-replay)
- [Skip forward](https://useanimations.com/icons/skip-forward) (click-replay)
- [Stop Circle](https://useanimations.com/icons/stop-circle) (click-replay)
- [Shuffle](https://useanimations.com/icons/shuffle) (click-replay)
- [Microphone](https://useanimations.com/icons/microphone) (click-toggle)
- [Mic Off](https://useanimations.com/icons/mic-off) (click-toggle)
- [Airplay](https://useanimations.com/icons/airplay) (loop)
- [Music](https://useanimations.com/icons/music) (hover-replay)
- [Volume](https://useanimations.com/icons/volume) (click-toggle)
- [Headphones](https://useanimations.com/icons/headphones) (hover-replay)
- [TV](https://useanimations.com/icons/tv) (hover-replay)

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