Skip to content
Click to toggle
Interaction
Click toggle
Duration
0.27 s
Artboard
32 × 32 px
Lottie size
1.6 kB

Play/Pause

Toggles between two states on click, or switches immediately when reduced motion is preferred. Free under the MIT license.

mediapauseplayplayer

React

npm install react-useanimations
import UseAnimations from 'react-useanimations';
import playPause from 'react-useanimations/lib/playPause';

<UseAnimations animation={playPause} size={32} />

shadcn/ui

npx shadcn@latest add https://useanimations.com/r/play-pause.json
import { AnimatedPlayPause } from '@/components/animations/play-pause';

<AnimatedPlayPause size={24} />

Files

https://useanimations.com/icons/play-pause.json  # Lottie JSON
https://useanimations.com/icons/play-pause.zip   # Lottie JSON + static SVGs

The animation as Lottie JSON and a ZIP with it and the SVGs. See Files & icons.json.

Static SVG

pause.svg
play.svg