---
title: "Precompose animated icon"
description: "Precompose animated icon (Motion design). Separate layers gather into an aligned composition. Its enclosing frame appears after the layers land; Strong gathers them faster after a brief outward preparation."
canonical: https://generativeicons.com/icons/precompose/
---

# Precompose animated icon

Separate layers gather into an aligned composition. Its enclosing frame appears after the layers land; Strong gathers them faster after a brief outward preparation.

- Id: `precompose`
- Category: Motion design
- Search terms: pre-compose, precomp, pre-comp, nest, nest layers, nested composition, nested comp, composition, comp, sub composition
- 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/precompose.lottie (dotLottie, 8544 bytes, sha256 df6895b8fbee8879142df5a5a99623d3dc4a02e4a2b4e2d6d55c25922eba9d0b)
- License: MIT

## Install

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

## React

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

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