---
title: "Smart lock animated icon"
description: "Smart lock animated icon (Smart Home). Light: the lever handle is pressed 30° down and springs back, and the status light above the keypad comes on. Strong: it is yanked 45° down with a hard hit, rebounds and settles, and the status light pops on. The unlocked state is retained; preview reset rearms."
canonical: https://generativeicons.com/icons/smart-lock/
---

# Smart lock animated icon

Light: the lever handle is pressed 30° down and springs back, and the status light above the keypad comes on. Strong: it is yanked 45° down with a hard hit, rebounds and settles, and the status light pops on. The unlocked state is retained; preview reset rearms.

- Id: `smart-lock`
- Category: Smart Home
- Search terms: door lock, keypad lock, digital lock, electronic lock, keyless entry, unlock door, door handle, deadbolt, access control, entry code
- 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/smart-lock.lottie (dotLottie, 9507 bytes, sha256 2a0ad31be1ec5c1cf0ff33cf0a24d9e349d46acb20afd9fa69186a0e61c33491)
- License: MIT

## Install

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

## React

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

export function SmartLockIcon() {
  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/smart-lock.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/smart-lock/ · https://generativeicons.com/api/icons/smart-lock
