---
title: "Animated Video Icon"
description: "A video camera for the camera button of a call. Its lens pulses on hover, and a slash draws across it when the camera is off."
url: https://gelatinui.com/components/animated-video-icon
markdown_url: https://gelatinui.com/components/animated-video-icon.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/animated-video-icon"
version: "2026-11-24"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Animated Video Icon

> A video camera for the camera button of a call. Its lens pulses on hover, and a slash draws across it when the camera is off.

Page: https://gelatinui.com/components/animated-video-icon

## When to use it

Best for: A camera that takes a slash when it is off, for the camera toggle of a call.

- Use it in the camera toggle of a video call or a meeting room.
- Set `off` from the camera state. That prop alone draws the slash and dims the camera.

## When not to use it

- For the mute toggle of a call, use the [Animated Mic Icon](https://gelatinui.com/components/animated-mic-icon.md).
- For a play or pause control of a video, use the [Animated Play Pause Icon](https://gelatinui.com/components/animated-play-pause-icon.md).

## Notes for agents

- `variant` (`stroke`, `solid`, `duotone`, `twotone`, `bulk`) and `corners` (`round`, `sharp`) pick the style. Use one style for every icon of a product.
- `off` is the only state prop. The default is `false`: the camera is on.
- `trigger` is `hover` by default: the hover or the keyboard focus of the control plays one lens pulse.
- The icon is `aria-hidden`. Put `aria-pressed` and the name on the button.

## Anatomy

```text
AnimatedVideoIcon
```

## API reference

### AnimatedVideoIcon

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"bulk" \| "duotone" \| "solid" \| "stroke" \| "twotone"` |  | `stroke` (default): 1.5 strokes. `solid`: the body filled, inner details cut through. `duotone`: a 40% fill under the stroke. `twotone`: the details at 40%. `bulk`: the body filled at 40% with no outline, the details at full color. |
| `corners` | `"round" \| "sharp"` |  | `round` (default): round caps and joins, soft corners. `sharp`: square caps, miter joins. |
| `trigger` | `"hover" \| "none"` |  | `hover` (default) plays once per hover or keyboard focus of the control around the icon. |
| `play` | `number` |  | Plays once each time this number changes (a new notice, a saved form). |
| `off` | `boolean` | false | Camera off: a slash draws across the camera, and the camera dims. Default: the camera on. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| AnimatedVideoIcon | `animated-video-icon` |  |  |  |

## Usage

Set `off` from the camera state, and put `aria-pressed` on the button.

The sample also uses `button`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui-pro/animated-video-icon @gelatin-ui/button
```

```tsx title="camera-button.tsx"
import { useState } from "react";

import { AnimatedVideoIcon } from "@/components/pro/icons/animated-video-icon";
import { Button } from "@/components/ui/button";

export function CameraButton() {
  const [off, setOff] = useState(false);
  return (
    <Button
      variant="outline"
      size="icon"
      aria-label="Stop video"
      aria-pressed={off}
      onClick={() => {
        setOff((current) => {
          return !current;
        });
      }}
    >
      <AnimatedVideoIcon off={off} />
    </Button>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/animated-video-icon
```

It adds 14 registry items: 13 files, 2481 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Button](https://gelatinui.com/components/button.md)
- [Toggle](https://gelatinui.com/components/toggle.md)
- [Animated Mic Icon](https://gelatinui.com/components/animated-mic-icon.md)

## Accessibility

The icon is hidden from assistive tools. Put the name and `aria-pressed` on the button.

## Motion

| Part | Motion |
| --- | --- |
| Camera off | iconDraw · a slash draws across, and the camera dims on panel |
| Hover | iconHover · the lens pulses once from its start edge |
