---
title: "Play / Pause animated icon"
description: "Play / Pause animated icon (Media & playback). The play triangle folds into the left pause bar. The right bar grows in the space it clears. Strong pushes forward, folds decisively and settles with a small response."
canonical: https://generativeicons.com/icons/play-pause/
---

# Play / Pause animated icon

The play triangle folds into the left pause bar. The right bar grows in the space it clears. Strong pushes forward, folds decisively and settles with a small response.

- Id: `play-pause`
- Category: Media & playback
- Search terms: resume, start, unpause, continue, playback, toggle playback, start playback, media controls, player controls, video player, music player
- Two states: Play to Pause, 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/play-pause.lottie (dotLottie, 25278 bytes, sha256 e96a441f585e8c5eea6f0d640e09d3dff7bc7dd882d4b487d55ae98d622fd81c)
- License: MIT

## Install

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

## React

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

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