# User X animated icon

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

The User X animated icon plays on hover and reverses on mouse leave in 0.27 s, a good fit for team member lists with add and remove user actions. 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: [Content](https://useanimations.com/categories/content)
- Duration: 0.27 s at 30 fps
- Artboard: 32 × 32 px
- Lottie size: 2.9 kB
- License: MIT, attribution optional ([Licencing & Terms](https://useanimations.com/licencing-and-terms))

## Files

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

## React

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

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

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

## shadcn/ui

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

```tsx
import { AnimatedUserX } from '@/components/animations/user-x';

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

## HTML and lottie-web

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

## FAQ

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

### Is User X decorative?

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

### Can User X 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

- [User](https://useanimations.com/icons/user) (hover-replay)
- [User Check](https://useanimations.com/icons/user-check) (click-replay)
- [User minus](https://useanimations.com/icons/user-minus) (hover)
- [User plus](https://useanimations.com/icons/user-plus) (hover)
- [Users](https://useanimations.com/icons/users) (hover-replay)
- [Copy](https://useanimations.com/icons/copy) (hover)
- [Archive](https://useanimations.com/icons/archive) (hover)
- [Share](https://useanimations.com/icons/share) (hover)
- [Mail](https://useanimations.com/icons/mail) (hover)
- [File Text](https://useanimations.com/icons/file-text) (hover-replay)
- [Book Open](https://useanimations.com/icons/book-open) (hover-replay)
- [File Minus](https://useanimations.com/icons/file-minus) (click-replay)

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