# Log In animated icon

> MIT-licensed Log In animated icon: replays on every click. Use it in React or shadcn/ui, or get the Lottie JSON or SVG.

The Log In animated icon replays on every click in 1.13 s, a good fit 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 in and login.

## 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-in.json
- Static SVG (log-in): https://useanimations.com/icons/log-in/log-in.svg
- ZIP (Lottie JSON and SVGs): https://useanimations.com/icons/log-in.zip
- shadcn registry item: https://useanimations.com/r/log-in.json
- Web page: https://useanimations.com/icons/log-in

## React

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

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

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

## shadcn/ui

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

```tsx
import { AnimatedLogIn } from '@/components/animations/log-in';

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

## HTML and lottie-web

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

## FAQ

### Do fast clicks on Log In queue up?

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.

### Should the Log In icon be a <button>?

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

### Can Log In 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 Out](https://useanimations.com/icons/log-out) (click-replay)
- [Zoom In](https://useanimations.com/icons/zoom-in) (hover)
- [Arrow up circle](https://useanimations.com/icons/arrow-up-circle) (click-replay)
- [Arrow right circle](https://useanimations.com/icons/arrow-right-circle) (click-replay)
- [Arrow left circle](https://useanimations.com/icons/arrow-left-circle) (click-replay)
- [Arrow down circle](https://useanimations.com/icons/arrow-down-circle) (click-replay)
- [Corner Down Left](https://useanimations.com/icons/corner-down-left) (hover-replay)
- [Corner Up Left](https://useanimations.com/icons/corner-up-left) (hover-replay)
- [Arrow Down Left](https://useanimations.com/icons/arrow-down-left) (hover-replay)
- [Chevrons Right](https://useanimations.com/icons/chevrons-right) (hover-replay)
- [Chevron Up](https://useanimations.com/icons/chevron-up) (hover-replay)
- [Corner Left Up](https://useanimations.com/icons/corner-left-up) (hover-replay)

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