---
title: "Lives animated icon"
description: "Lives animated icon (Gamification & rewards). The lives count off. Light: the main heart beats once, and the beat runs down the line: the left reserve heart hops and lands, then the right one. Strong: the main heart draws in and gives a strong beat with a smaller echo, and each reserve heart hops higher in turn once the beat has passed, lands with a squash and a small bounce."
canonical: https://generativeicons.com/icons/lives/
---

# Lives animated icon

The lives count off. Light: the main heart beats once, and the beat runs down the line: the left reserve heart hops and lands, then the right one. Strong: the main heart draws in and gives a strong beat with a smaller echo, and each reserve heart hops higher in turn once the beat has passed, lands with a squash and a small bounce.

- Id: `lives`
- Category: Gamification & rewards
- Search terms: hearts, hp, health points, health bar, life, extra life, 1up, one up, lives left, three hearts, respawn, attempts left
- One action, back to rest
- 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/lives.lottie (dotLottie, 5395 bytes, sha256 0aae42ee08857342603f481d6e308e2c2964d6d69f8218534ebb2bc3db367cb5)
- License: MIT

## Install

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

## React

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

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