---
title: "Boolean subtract animated icon"
description: "Boolean subtract animated icon (Vector editing & design). Two overlapping square operands select the first area outside the second. Light: a quiet separation then a smooth selection. Strong: both operands draw apart 1.2 units and snap together before the result holds. Reverse restores both operands with its own timing."
canonical: https://generativeicons.com/icons/boolean-subtract/
---

# Boolean subtract animated icon

Two overlapping square operands select the first area outside the second. Light: a quiet separation then a smooth selection. Strong: both operands draw apart 1.2 units and snap together before the result holds. Reverse restores both operands with its own timing.

- Id: `boolean-subtract`
- Category: Vector editing & design
- Search terms: minus front, minus back, punch out, cut out, cutout, knockout, boolean minus, subtract shape, pathfinder minus, carve, remove shape
- Two states: Separate operands to Subtracted region, 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/boolean-subtract.lottie (dotLottie, 11252 bytes, sha256 fc2a24862c3358d5bed8cb771ed700918c305a49ceb27b8f6c12d872a07124db)
- License: MIT

## Install

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

## React

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

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