# Link animated icon

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

Link is a 1.13 s micro animation from the action set that replays on every click, like Link 2 and External Link. Click icons typically confirm send, save, refresh, download, add-to-cart and formatting buttons. Also known as chain, url and hyperlink.

## 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: 1.13 s at 30 fps
- Artboard: 32 × 32 px
- Lottie size: 2.4 kB
- License: MIT, attribution optional ([Licencing & Terms](https://useanimations.com/licencing-and-terms))

## Files

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

## React

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

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

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

## shadcn/ui

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

```tsx
import { AnimatedLink } from '@/components/animations/link';

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

## HTML and lottie-web

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

## Other versions

- [Link 2](https://useanimations.com/icons/link-2): Link 2 has the same click replay interaction and timing with a different drawing.

## FAQ

### Do fast clicks on Link queue up?

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

### Should the Link icon be a <button>?

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

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

- [External Link](https://useanimations.com/icons/external-link) (hover-replay)
- [Upload Cloud](https://useanimations.com/icons/upload-cloud) (click-replay)
- [Plus Circle](https://useanimations.com/icons/plus-circle) (click-replay)
- [Minus Circle](https://useanimations.com/icons/minus-circle) (click-replay)
- [Filter](https://useanimations.com/icons/filter) (click-replay)
- [Power](https://useanimations.com/icons/power) (click-replay)
- [Download](https://useanimations.com/icons/download) (click-replay)
- [Refresh Ccw](https://useanimations.com/icons/refresh-ccw) (click-replay)
- [Thumbs Down](https://useanimations.com/icons/thumbs-down) (click-replay)
- [Rotate Ccw](https://useanimations.com/icons/rotate-ccw) (click-replay)
- [Upload](https://useanimations.com/icons/upload) (click-replay)
- [Download V2](https://useanimations.com/icons/download-v2) (click-replay)

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