# Log Out animated icon

> Free Log Out animated icon that replays on every click. MIT-licensed for React, shadcn/ui, Lottie JSON and SVG.

Log Out is a 1.13 s micro animation that replays on every click; use it for sign-in and sign-out links. Click icons typically confirm send, save, refresh, download, add-to-cart and formatting buttons. Also known as sign out and logout.

## Facts

- Interaction: [Click replay](https://useanimations.com/interactions/click-replay). Replays once from the start on every click unless reduced motion is preferred.
- Category: [Navigation](https://useanimations.com/categories/navigation)
- Duration: 1.13 s at 30 fps
- Artboard: 32 × 32 px
- Lottie size: 1.8 kB
- License: MIT, attribution optional ([Licencing & Terms](https://useanimations.com/licencing-and-terms))

## Files

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

## React

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

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

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

## shadcn/ui

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

```tsx
import { AnimatedLogOut } from '@/components/animations/log-out';

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

## HTML and lottie-web

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

## FAQ

### What happens if Log Out is clicked again before it finishes?

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.

### How do I make Log Out an accessible button?

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

### Can Log Out 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

- [Log In](https://useanimations.com/icons/log-in) (click-replay)
- [Zoom Out](https://useanimations.com/icons/zoom-out) (hover)
- [Arrow down circle](https://useanimations.com/icons/arrow-down-circle) (click-replay)
- [Arrow up circle](https://useanimations.com/icons/arrow-up-circle) (click-replay)
- [Arrow left circle](https://useanimations.com/icons/arrow-left-circle) (click-replay)
- [Arrow right circle](https://useanimations.com/icons/arrow-right-circle) (click-replay)
- [Arrow Up Right](https://useanimations.com/icons/arrow-up-right) (hover-replay)
- [Corner Down Right](https://useanimations.com/icons/corner-down-right) (hover-replay)
- [Sidebar](https://useanimations.com/icons/sidebar) (hover-replay)
- [More Vertical](https://useanimations.com/icons/more-vertical) (loop)
- [Corner Up Left](https://useanimations.com/icons/corner-up-left) (hover-replay)
- [Chevrons Down](https://useanimations.com/icons/chevrons-down) (hover-replay)

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