Skip to content
Hover to play
Interaction
Hover replay
Duration
1.47 s
Artboard
32 × 32 px
Lottie size
4.8 kB

Battery

Plays once on mouseenter unless reduced motion is preferred. Leaving does not stop it; entering during playback does not restart it. Free under the MIT license.

batterydevices

React

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

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

shadcn/ui

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

<AnimatedBattery size={24} />

Files

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

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

Static SVG

battery.svg