---
title: "Stack cycle animated icon"
description: "Stack cycle animated icon (Loading indicators). Three horizontal bars exchange places on a closed route."
canonical: https://generativeicons.lottiefiles.com/icons/stack-cycle/
---

# Stack cycle animated icon

Three horizontal bars exchange places on a closed route.

- Id: `stack-cycle`
- Category: Loading indicators
- Search terms: loading, loader, stacked bars, bar stack, layer loader, busy, please wait, waiting, processing, activity indicator
- 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/stack-cycle.lottie (dotLottie, 19480 bytes, sha256 38ab9ddb246db285192a5f1fe67a34ab0e19e9592ca320a713f011b3898cc348)
- License: MIT

## Install

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

## React

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

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