# YouTube V2 animated icon

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

YouTube V2 is a 1 s micro animation from the social media set that plays on hover and reverses on mouse leave, like YouTube and Instagram. 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: 1.00 s at 30 fps
- Artboard: 32 × 32 px
- Lottie size: 14.5 kB
- License: MIT, attribution optional ([Licencing & Terms](https://useanimations.com/licencing-and-terms))

## Files

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

## React

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

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

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

## shadcn/ui

```bash
npx shadcn@latest add https://useanimations.com/r/youtube-v2.json
```

```tsx
import { AnimatedYoutubeV2 } from '@/components/animations/youtube-v2';

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

## HTML and lottie-web

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

## Other versions

- [YouTube](https://useanimations.com/icons/youtube): YouTube has the same hover interaction and timing with a different drawing.

## FAQ

### Does YouTube V2 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 1 s. Keyboard focus plays it as well; a tap on a touch screen does not.

### Is YouTube V2 decorative?

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

### Can I color the fill of YouTube V2 separately?

Yes: strokeColor sets the outlines and fillColor the filled parts, e.g. strokeColor="#e5484d" fillColor="#ffd1d1"; both follow the text color by default.

## Related icons

- [Instagram](https://useanimations.com/icons/instagram) (hover)
- [Framer](https://useanimations.com/icons/framer) (hover-replay)
- [Dribbble](https://useanimations.com/icons/dribbble) (hover-loop)
- [Codesandbox](https://useanimations.com/icons/codesandbox) (hover-replay)
- [Twitter](https://useanimations.com/icons/twitter) (hover-loop)
- [Twitter X](https://useanimations.com/icons/twitter-x) (hover-replay)
- [GitLab](https://useanimations.com/icons/gitlab) (hover-replay)
- [Codepen](https://useanimations.com/icons/codepen) (hover-loop)
- [Chrome](https://useanimations.com/icons/chrome) (hover-replay)
- [Discord](https://useanimations.com/icons/discord) (hover-loop)
- [Twitch](https://useanimations.com/icons/twitch) (hover-replay)
- [Behance](https://useanimations.com/icons/behance) (hover-loop)

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