---
title: "Spotlight animated icon"
description: "Spotlight animated icon (Onboarding & tips). Left → right. Light: the spotlight glides 9 units across the dimmed page. Strong: it draws back 0.7, drives across with a hard stop 0.7 past the target, settles and swells once. Reverse glides back."
canonical: https://generativeicons.com/icons/spotlight/
---

# Spotlight animated icon

Left → right. Light: the spotlight glides 9 units across the dimmed page. Strong: it draws back 0.7, drives across with a hard stop 0.7 past the target, settles and swells once. Reverse glides back.

- Id: `spotlight`
- Category: Onboarding & tips
- Search terms: focus, emphasize, emphasise, draw attention, dim background, center stage, featured, showcase, limelight
- Two states: left to right, 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/spotlight.lottie (dotLottie, 14567 bytes, sha256 3433987f841678365890e6dd83e75995a3dfe5c1a84802e69cfbb51f7c871885)
- License: MIT

## Install

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

## React

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

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