---
title: "Closed captions animated icon"
description: "Closed captions animated icon (Media & playback). A caption line opens beneath the letters. Strong writes the line faster, reaches farther and settles to the same enabled state."
canonical: https://generativeicons.com/icons/closed-captions/
---

# Closed captions animated icon

A caption line opens beneath the letters. Strong writes the line faster, reaches farther and settles to the same enabled state.

- Id: `closed-captions`
- Category: Media & playback
- Search terms: cc, subtitles, subtitle, subs, show subtitles, srt, sdh, text track, caption track
- 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/closed-captions.lottie (dotLottie, 14666 bytes, sha256 62ba17d61b9456f26f3be8955ac57dc6a337f197915881968aeb188ecf4f220f)
- License: MIT

## Install

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

## React

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

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