---
title: "Battery animated icon"
description: "Battery animated icon (Tools). Power arrives and the battery charges. Light: a bolt strikes down into the empty cell, then the level sweeps across it to the retained charge in one decisive fill and the bolt is absorbed. Strong: a harder strike, then the level climbs in three ticks, each smaller, and holds. The level never overshoots; the shell and terminal never move."
canonical: https://generativeicons.com/icons/battery/
---

# Battery animated icon

Power arrives and the battery charges. Light: a bolt strikes down into the empty cell, then the level sweeps across it to the retained charge in one decisive fill and the bolt is absorbed. Strong: a harder strike, then the level climbs in three ticks, each smaller, and holds. The level never overshoots; the shell and terminal never move.

- Id: `battery`
- Category: Tools
- Search terms: charge, charging, battery level, battery status, energy, low battery, recharge, power level, charger, full battery
- Two states: prepared to result, 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/battery.lottie (dotLottie, 7619 bytes, sha256 35bee44fe32f75d167a9a59ba98985eb0a74fe922c9ca2dcff923b43c63fb125)
- License: MIT

## Install

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

## React

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

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