# Camera animated icon

> Add the Camera micro animation to React with react-useanimations or shadcn. It replays on every click; free MIT Lottie and SVG files.

Use the Camera icon for camera on and off toggles in meeting apps: it replays on every click and takes 1.13 s. Click icons typically confirm send, save, refresh, download, add-to-cart and formatting buttons. Also known as photo and snapshot.

## Facts

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

## Files

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

## React

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

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

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

## shadcn/ui

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

```tsx
import { AnimatedCamera } from '@/components/animations/camera';

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

## HTML and lottie-web

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

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

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

- [Camera Off](https://useanimations.com/icons/camera-off) (click-toggle)
- [Video](https://useanimations.com/icons/video) (click-toggle)
- [Video Off](https://useanimations.com/icons/video-off) (click-toggle)
- [Video V2](https://useanimations.com/icons/video-v2) (click-toggle)
- [Skip forward](https://useanimations.com/icons/skip-forward) (click-replay)
- [Shuffle](https://useanimations.com/icons/shuffle) (click-replay)
- [Skip back](https://useanimations.com/icons/skip-back) (click-replay)
- [Repeat](https://useanimations.com/icons/repeat) (click-replay)
- [Stop Circle](https://useanimations.com/icons/stop-circle) (click-replay)
- [Radio](https://useanimations.com/icons/radio) (hover-replay)
- [Microphone V2](https://useanimations.com/icons/microphone-v2) (click-toggle)
- [Aperture](https://useanimations.com/icons/aperture) (hover-replay)

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