---
title: "XP gain animated icon"
description: "XP gain animated icon (Gamification & rewards). Light: a star pellet drops onto the progress track, is absorbed and the bar extends from 40% to 85%. Strong: it drops fast, bounces once on the track and the bar drives out sooner. The gained progress is retained; preview reset rearms."
canonical: https://generativeicons.com/icons/xp-gain/
---

# XP gain animated icon

Light: a star pellet drops onto the progress track, is absorbed and the bar extends from 40% to 85%. Strong: it drops fast, bounces once on the track and the bar drives out sooner. The gained progress is retained; preview reset rearms.

- Id: `xp-gain`
- Category: Gamification & rewards
- Search terms: experience points, experience, exp, xp bar, xp points, earn points, points earned, level progress, skill points, exp bar, progress meter
- 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/xp-gain.lottie (dotLottie, 10031 bytes, sha256 0251801a962dea080740df47d6ee494d7642e5073031549c19953a480efc8fd5)
- License: MIT

## Install

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

## React

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

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