---
title: "Infinity animated icon"
description: "Infinity animated icon (Essentials). A light runs the endless loop, for unlimited. Light: the infinity sign dims and a bright stroke traces it in one pass, through the right loop and back through the left, and as the trace closes the sign brightens and stretches a little wider before springing back. Strong: the stroke runs the loop twice, the second lap a little slower, and the sign stretches much wider and springs back in two beats as the second lap closes."
canonical: https://generativeicons.lottiefiles.com/icons/infinity/
---

# Infinity animated icon

A light runs the endless loop, for unlimited. Light: the infinity sign dims and a bright stroke traces it in one pass, through the right loop and back through the left, and as the trace closes the sign brightens and stretches a little wider before springing back. Strong: the stroke runs the loop twice, the second lap a little slower, and the sign stretches much wider and springs back in two beats as the second lap closes.

- Id: `infinity`
- Category: Essentials
- Search terms: unlimited, infinite, endless, forever, eternal, eternity, limitless, no limit, boundless, endless loop, perpetual, lemniscate
- 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.lottiefiles.com/assets/infinity.lottie (dotLottie, 3654 bytes, sha256 31024721ad85ed004f608ce41ee947446786a36ee951f433a436a914405d9acb)
- License: MIT

## Install

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

## React

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

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