# Alert octagon animated icon

> MIT-licensed Alert octagon animated icon: loops continuously. Use it in React or shadcn/ui, or get the Lottie JSON or SVG.

Alert octagon is a 1.5 s micro animation that loops continuously; use it for error and warning banners at the top of a page. Looping icons typically show loading spinners, active alerts, a ringing bell or a scroll-down hint.

## Facts

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

## Files

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

## React

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

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

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

## shadcn/ui

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

```tsx
import { AnimatedAlertOctagon } from '@/components/animations/alert-octagon';

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

## HTML and lottie-web

```html
<div id="alert-octagon-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('alert-octagon-icon');
  const a = lottie.loadAnimation({ container: el, renderer: 'svg', loop: true, autoplay: false, path: 'https://useanimations.com/icons/alert-octagon.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 Alert octagon 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 Alert octagon decorative?

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

### Can Alert octagon 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

- [Alert circle](https://useanimations.com/icons/alert-circle) (loop)
- [Alert triangle](https://useanimations.com/icons/alert-triangle) (loop)
- [X Octagon](https://useanimations.com/icons/x-octagon) (click-replay)
- [Octagon](https://useanimations.com/icons/octagon) (hover-replay)
- [Error](https://useanimations.com/icons/error) (loop)
- [Notification](https://useanimations.com/icons/notification) (click-toggle)
- [Notification V2](https://useanimations.com/icons/notification-v2) (click-toggle)
- [Notification V3](https://useanimations.com/icons/notification-v3) (loop)
- [Notification V4](https://useanimations.com/icons/notification-v4) (loop)

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