# Terminal animated icon

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

Use the Terminal icon for terminal and CLI sections on landing pages: it loops continuously and takes 1.33 s. Looping icons typically show loading spinners, active alerts, a ringing bell or a scroll-down hint. Also known as console, command line and cli.

## Facts

- Interaction: [Loop](https://useanimations.com/interactions/loop). Plays continuously; stays on the static first frame when reduced motion is preferred.
- Category: [Development](https://useanimations.com/categories/development)
- Duration: 1.33 s at 30 fps
- Artboard: 32 × 32 px
- Lottie size: 1.7 kB
- License: MIT, attribution optional ([Licencing & Terms](https://useanimations.com/licencing-and-terms))

## Files

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

## React

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

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

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

## shadcn/ui

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

```tsx
import { AnimatedTerminal } from '@/components/animations/terminal';

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

## HTML and lottie-web

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

## FAQ

### Can I pause the Terminal loop?

It pauses by itself while scrolled out of view and stays on its first frame when reduced motion is preferred or autoplay={false} is set. To show it only while something is pending, render it conditionally.

### Is Terminal decorative?

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

### Can Terminal loop only while hovered instead?

Yes: pass interaction="hover-loop". It then loops while hovered, finishes the current cycle after mouseleave and stays static when reduced motion is preferred.

## Related icons

- [Server](https://useanimations.com/icons/server) (hover-replay)
- [Database](https://useanimations.com/icons/database) (hover-replay)
- [Git Pull Request](https://useanimations.com/icons/git-pull-request) (hover-replay)
- [Git Merge](https://useanimations.com/icons/git-merge) (hover-replay)
- [Code](https://useanimations.com/icons/code) (hover-replay)
- [Git Branch](https://useanimations.com/icons/git-branch) (hover-replay)
- [Command](https://useanimations.com/icons/command) (hover-replay)
- [Git Commit](https://useanimations.com/icons/git-commit) (hover-replay)

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