---
title: "Context window animated icon"
description: "Context window animated icon (AI · Conversation). The oldest token drops out, the remaining tokens shift one slot left, a new token arrives on the right."
canonical: https://generativeicons.com/icons/context-window/
---

# Context window animated icon

The oldest token drops out, the remaining tokens shift one slot left, a new token arrives on the right.

- Id: `context-window`
- Category: AI · Conversation
- Search terms: context length, context size, context limit, token limit, sliding window, token window, rolling window, truncation, llm context
- 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/context-window.lottie (dotLottie, 9707 bytes, sha256 07ef7e793746b22927a6245310439da750a8c801f2ad8af4ba0b42fc75007b91)
- License: MIT

## Install

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

## React

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

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