---
title: "Scan animated icon"
description: "Scan animated icon (Tools). The scanner locks focus, then reads. Light: the four brackets snap in on the target and spring back out, then the scan bar crosses the frame at a steady speed and stops dead at the lower edge. Strong: a deeper focus snap, the same steady pass, and on arrival the brackets squeeze once more to confirm the capture. The bar holds at the lower edge."
canonical: https://generativeicons.com/icons/scan/
---

# Scan animated icon

The scanner locks focus, then reads. Light: the four brackets snap in on the target and spring back out, then the scan bar crosses the frame at a steady speed and stops dead at the lower edge. Strong: a deeper focus snap, the same steady pass, and on arrival the brackets squeeze once more to confirm the capture. The bar holds at the lower edge.

- Id: `scan`
- Category: Tools
- Search terms: scanner, document scanner, scan document, viewfinder, capture, ocr, code reader, read code, focus frame, camera scan
- Two states: prepared to result, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/scan.lottie (dotLottie, 6172 bytes, sha256 e72b3aeabb961d8d84f8ab5fdef77914151b0f2fdadb65f4b805aca6db8f8123)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add scan
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/scan.mjs';

export function ScanIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/scan.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/scan/ · https://generativeicons.com/api/icons/scan
