# Instagram animated icon

> MIT-licensed Instagram animated icon: plays on hover and reverses on mouse leave. Use it in React or shadcn/ui, or get the Lottie JSON or SVG.

Instagram is a 0.33 s micro animation from the social media set that plays on hover and reverses on mouse leave, like YouTube V2 and YouTube. Hover icons typically mark navigation items, delete buttons, settings, zoom controls and social links.

## Facts

- Interaction: [Hover](https://useanimations.com/interactions/hover). Plays forward on mouseenter and backward on mouseleave.
- Category: [Social media](https://useanimations.com/categories/social-media)
- Duration: 0.33 s at 30 fps
- Artboard: 32 × 32 px
- Lottie size: 5.5 kB
- License: MIT, attribution optional ([Licencing & Terms](https://useanimations.com/licencing-and-terms))

## Files

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

## React

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

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

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

## shadcn/ui

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

```tsx
import { AnimatedInstagram } from '@/components/animations/instagram';

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

## HTML and lottie-web

```html
<div id="instagram-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('instagram-icon');
  const a = lottie.loadAnimation({ container: el, renderer: 'svg', loop: false, autoplay: false, path: 'https://useanimations.com/icons/instagram.json' });
  el.addEventListener('mouseenter', () => { a.setDirection(1); a.play(); });
  el.addEventListener('mouseleave', () => { a.setDirection(-1); a.play(); });
</script>
```

## FAQ

### Does Instagram finish its animation after mouse leave?

It reverses from the frame it reached back to the start, so a quick pass of the pointer gives a short nudge rather than the full 0.33 s. Keyboard focus plays it as well; a tap on a touch screen does not.

### Is Instagram decorative?

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

### Can Instagram play on click instead?

Yes: pass interaction="click-replay". It then replays once from the start on every click unless reduced motion is preferred.

## Related icons

- [YouTube V2](https://useanimations.com/icons/youtube-v2) (hover)
- [YouTube](https://useanimations.com/icons/youtube) (hover)
- [Framer](https://useanimations.com/icons/framer) (hover-replay)
- [Twitch](https://useanimations.com/icons/twitch) (hover-replay)
- [Pocket](https://useanimations.com/icons/pocket) (hover-loop)
- [Linkedin](https://useanimations.com/icons/linkedin) (hover-loop)
- [Twitter X](https://useanimations.com/icons/twitter-x) (hover-replay)
- [GitLab](https://useanimations.com/icons/gitlab) (hover-replay)
- [Chrome](https://useanimations.com/icons/chrome) (hover-replay)
- [Facebook](https://useanimations.com/icons/facebook) (hover-loop)
- [Codesandbox](https://useanimations.com/icons/codesandbox) (hover-replay)
- [Trello](https://useanimations.com/icons/trello) (hover-replay)

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