---
title: "Headlights animated icon"
description: "Headlights animated icon (Automotive). Forward: three beams extend out of the lamp in sequence; Strong flashes them out past full length and the lamp recoils. Reverse: the beams draw back into the lamp."
canonical: https://generativeicons.com/icons/headlights/
---

# Headlights animated icon

Forward: three beams extend out of the lamp in sequence; Strong flashes them out past full length and the lamp recoils. Reverse: the beams draw back into the lamp.

- Id: `headlights`
- Category: Automotive
- Search terms: headlamp, headlamps, head lights, high beam, low beam, full beam, dipped beam, main beam, fog lights, car lights, lights on
- Two states: off to on, 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/headlights.lottie (dotLottie, 9258 bytes, sha256 65823f9a60cf9f1a3d23c7991bac1daca8981eaf6c32ff90439db12af18ea7df)
- License: MIT

## Install

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

## React

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

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