---
title: "Pen tool animated icon"
description: "Pen tool animated icon (Drawing & design tools). Light: the pen nib dips 1 unit onto the path's last anchor and a soft selection ring spreads from it. Strong: the nib lifts, stabs 1.5 units with a hard stop, the ring bursts to twice the size and the nib rebounds."
canonical: https://generativeicons.com/icons/pen-tool/
---

# Pen tool animated icon

Light: the pen nib dips 1 unit onto the path's last anchor and a soft selection ring spreads from it. Strong: the nib lifts, stabs 1.5 units with a hard stop, the ring bursts to twice the size and the nib rebounds.

- Id: `pen-tool`
- Category: Drawing & design tools
- Search terms: bezier, bezier tool, vector pen, path tool, draw path, nib, pen nib, fountain pen, vector drawing, add anchor
- 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.com/assets/pen-tool.lottie (dotLottie, 7738 bytes, sha256 a9e7b907552e34f10b199559c4de0ea2cbdfb9eeeab1e6f7e69b2675e4bfd16f)
- License: MIT

## Install

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

## React

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

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