---
title: "Car lock animated icon"
description: "Car lock animated icon (Automotive). The car locks, and it answers like a key fob chirp. Light: the raised shackle swings 28 degrees shut and slams down into the padlock with a hit, the padlock jolts, and a beat later the car dips on its springs and rebounds. Strong: the shackle lifts and opens a little first, snaps shut and slams in, the padlock jolts harder, and the car answers with a double dip, chirp-chirp. The reverse pops the shackle up and swings it open with a small overshoot while the car stays still. The wheels stay planted; the shackle holds shut."
canonical: https://generativeicons.com/icons/car-lock/
---

# Car lock animated icon

The car locks, and it answers like a key fob chirp. Light: the raised shackle swings 28 degrees shut and slams down into the padlock with a hit, the padlock jolts, and a beat later the car dips on its springs and rebounds. Strong: the shackle lifts and opens a little first, snaps shut and slams in, the padlock jolts harder, and the car answers with a double dip, chirp-chirp. The reverse pops the shackle up and swings it open with a small overshoot while the car stays still. The wheels stay planted; the shackle holds shut.

- Id: `car-lock`
- Category: Automotive
- Search terms: vehicle lock, central locking, car security, car alarm, anti-theft, lock doors, secure vehicle, vehicle security, immobilizer, immobiliser
- Two states: unlocked to locked, 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/car-lock.lottie (dotLottie, 7622 bytes, sha256 2324b99855d74234b064a686760632a4314cb766ace265ee4a4a0686003784f8)
- License: MIT

## Install

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

## React

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

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