# Refresh animated icon

> Free Refresh animated icon that replays on every click. MIT-licensed for React, shadcn/ui, Lottie JSON and SVG.

Use the Refresh icon for refresh and sync buttons in dashboards: it replays on every click and takes 2 s. Click icons typically confirm send, save, refresh, download, add-to-cart and formatting buttons. Also known as reload and sync.

## Facts

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

## Files

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

## React

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

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

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

## shadcn/ui

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

```tsx
import { AnimatedRefresh } from '@/components/animations/refresh';

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

## HTML and lottie-web

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

## Other versions

- [Refresh V2](https://useanimations.com/icons/refresh-v2): Refresh V2 is shorter at 1.33 s instead of 2 s.

## FAQ

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

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

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

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

### Can Refresh 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

- [Refresh Ccw](https://useanimations.com/icons/refresh-ccw) (click-replay)
- [Rotate Ccw](https://useanimations.com/icons/rotate-ccw) (click-replay)
- [Plus Circle](https://useanimations.com/icons/plus-circle) (click-replay)
- [Chevron left](https://useanimations.com/icons/chevron-left) (click-replay)
- [Power](https://useanimations.com/icons/power) (click-replay)
- [Minus Square](https://useanimations.com/icons/minus-square) (click-replay)
- [X Square](https://useanimations.com/icons/x-square) (click-replay)
- [Save](https://useanimations.com/icons/save) (click-replay)
- [Edit 3](https://useanimations.com/icons/edit-3) (click-replay)
- [Edit 2](https://useanimations.com/icons/edit-2) (click-replay)
- [Filter](https://useanimations.com/icons/filter) (click-replay)
- [Heart V2](https://useanimations.com/icons/heart-v2) (click-replay)

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