---
title: "Trim layer animated icon"
description: "Trim layer animated icon (Motion design). The layer's out-point is trimmed. Light: the out-point handle drives in 6 and stops dead a little past its mark; the clip's end follows it 50 ms later, shortening the layer, and both settle. Strong: the handle first pulls back, then slams in well past its mark, rebounds and settles; the clip's end follows each beat. The time ruler never moves; the preview reset fades it back."
canonical: https://generativeicons.com/icons/trim-layer/
---

# Trim layer animated icon

The layer's out-point is trimmed. Light: the out-point handle drives in 6 and stops dead a little past its mark; the clip's end follows it 50 ms later, shortening the layer, and both settle. Strong: the handle first pulls back, then slams in well past its mark, rebounds and settles; the clip's end follows each beat. The time ruler never moves; the preview reset fades it back.

- Id: `trim-layer`
- Category: Motion design
- Search terms: out point, in point, set out point, layer duration, layer length, shorten, shorten layer, cut duration, trim out
- 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/trim-layer.lottie (dotLottie, 5824 bytes, sha256 a0f2829237cd891377acee2c90f3168660668630522a84d46c728d852c47b8dc)
- License: MIT

## Install

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

## React

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

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