# Telegram animated icon

> Add the Telegram micro animation to React with react-useanimations or shadcn. It loops while hovered; free MIT Lottie and SVG files.

Use the Telegram icon for community and chat invite buttons: it loops while hovered and takes 1.33 s. Hover loop icons typically mark social links, community invites, portfolio links and language pickers.

## Facts

- Interaction: [Hover loop](https://useanimations.com/interactions/hover-loop). Loops while hovered, finishes the current cycle after mouseleave and stays static when reduced motion is preferred.
- Category: [Social media](https://useanimations.com/categories/social-media)
- Duration: 1.33 s at 30 fps
- Artboard: 32 × 32 px
- Lottie size: 1.1 kB
- License: MIT, attribution optional ([Licencing & Terms](https://useanimations.com/licencing-and-terms))

## Files

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

## React

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

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

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

## shadcn/ui

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

```tsx
import { AnimatedTelegram } from '@/components/animations/telegram';

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

## HTML and lottie-web

```html
<div id="telegram-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('telegram-icon');
  const a = lottie.loadAnimation({ container: el, renderer: 'svg', loop: true, autoplay: false, path: 'https://useanimations.com/icons/telegram.json' });
  const motion = matchMedia('(prefers-reduced-motion: reduce)');
  let stopAfterCycle = false;
  a.addEventListener('loopComplete', () => { if (stopAfterCycle) { stopAfterCycle = false; a.goToAndStop(0, true); } });
  el.addEventListener('mouseenter', () => { stopAfterCycle = false; if (!motion.matches) a.play(); });
  el.addEventListener('mouseleave', () => { stopAfterCycle = !motion.matches && !a.isPaused; if (!stopAfterCycle) a.goToAndStop(0, true); });
</script>
```

## FAQ

### Does Telegram stop as soon as the pointer leaves?

It finishes the cycle it is in (at most 1.33 s) and then rests on its first frame, so it never freezes mid-motion. Taps on touch screens are ignored, but keyboard focus plays it.

### Will screen readers read the Telegram icon?

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

### Can Telegram loop all the time instead?

Yes: pass interaction="loop". It then plays continuously; stays on the static first frame when reduced motion is preferred.

## Related icons

- [Discord](https://useanimations.com/icons/discord) (hover-loop)
- [Send](https://useanimations.com/icons/send) (click-replay)
- [Behance](https://useanimations.com/icons/behance) (hover-loop)
- [Github](https://useanimations.com/icons/github) (hover-loop)
- [Twitter](https://useanimations.com/icons/twitter) (hover-loop)
- [Facebook](https://useanimations.com/icons/facebook) (hover-loop)
- [Pocket](https://useanimations.com/icons/pocket) (hover-loop)
- [Codepen](https://useanimations.com/icons/codepen) (hover-loop)
- [Linkedin](https://useanimations.com/icons/linkedin) (hover-loop)
- [Dribbble](https://useanimations.com/icons/dribbble) (hover-loop)
- [Chrome](https://useanimations.com/icons/chrome) (hover-replay)
- [Codesandbox](https://useanimations.com/icons/codesandbox) (hover-replay)

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