---
title: "QR code animated icon"
description: "QR code animated icon (Forms & input). Data modules drop into the code between the fixed finder squares; Strong drops them from higher and each lands with one rebound."
canonical: https://generativeicons.lottiefiles.com/icons/qr-code/
---

# QR code animated icon

Data modules drop into the code between the fixed finder squares; Strong drops them from higher and each lands with one rebound.

- Id: `qr-code`
- Category: Forms & input
- Search terms: qrcode, scan code, scan me, quick response, 2d code, matrix code, data matrix, scan to pay, qr scanner
- 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.lottiefiles.com/assets/qr-code.lottie (dotLottie, 10575 bytes, sha256 1458e5c391210d837ee42667a5a8585308185dbcd7fe02f96f0baf2e83ff0086)
- License: MIT

## Install

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

## React

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

export function QrCodeIcon() {
  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/qr-code.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.lottiefiles.com/icons/qr-code/ · https://generativeicons.lottiefiles.com/api/icons/qr-code
