Skip to content
Hover to play, leave to reverse
Interaction
Hover
Duration
0.17 s
Artboard
32 × 32 px
Lottie size
2.1 kB

Trash

Plays forward on mouseenter and backward on mouseleave. Free under the MIT license.

actionbindeleteremovetrash

React

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

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

shadcn/ui

npx shadcn@latest add https://useanimations.com/r/trash.json
import { AnimatedTrash } from '@/components/animations/trash';

<AnimatedTrash size={24} />

Files

https://useanimations.com/icons/trash.json  # Lottie JSON
https://useanimations.com/icons/trash.zip   # Lottie JSON + static SVGs

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

Static SVG

trash.svg