# Settings animated icon

> Free Settings animated icon that plays on hover and reverses on mouse leave. MIT-licensed for React, shadcn/ui, Lottie JSON and SVG.

Settings is a 1.67 s micro animation that plays on hover and reverses on mouse leave; use it for settings and profile links. Hover icons typically mark navigation items, delete buttons, settings, zoom controls and social links. Also known as cog, gear and preferences.

## Facts

- Interaction: [Hover](https://useanimations.com/interactions/hover). Plays forward on mouseenter and backward on mouseleave.
- Category: [Action](https://useanimations.com/categories/action)
- Duration: 1.67 s at 30 fps
- Artboard: 32 × 32 px
- Lottie size: 3.5 kB
- License: MIT, attribution optional ([Licencing & Terms](https://useanimations.com/licencing-and-terms))

## Files

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

## React

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

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

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

## shadcn/ui

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

```tsx
import { AnimatedSettings } from '@/components/animations/settings';

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

## HTML and lottie-web

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

## Other versions

- [Settings V2](https://useanimations.com/icons/settings-v2): Settings V2 toggles between two states on click and is shorter at 0.33 s instead of 1.67 s.

## FAQ

### What does Settings do when the pointer leaves halfway?

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 1.67 s. Taps on touch screens are ignored, but keyboard focus plays it.

### Will screen readers read the Settings icon?

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

### Can Settings 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

- [Folder](https://useanimations.com/icons/folder) (hover)
- [Zoom Out](https://useanimations.com/icons/zoom-out) (hover)
- [Zoom In](https://useanimations.com/icons/zoom-in) (hover)
- [Trash V2](https://useanimations.com/icons/trash-v2) (hover)
- [Edit](https://useanimations.com/icons/edit) (hover)
- [Info](https://useanimations.com/icons/info) (hover)
- [Trash](https://useanimations.com/icons/trash) (hover)
- [Calendar](https://useanimations.com/icons/calendar) (hover)
- [Explore](https://useanimations.com/icons/explore) (hover)
- [Home](https://useanimations.com/icons/home) (hover)
- [Flag](https://useanimations.com/icons/flag) (hover-loop)
- [Refresh Ccw](https://useanimations.com/icons/refresh-ccw) (click-replay)

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