---
title: "Outline stroke animated icon"
description: "Outline stroke animated icon (Vector editing & design). Convert a curved stroke to an editable closed ribbon. Light: the two boundaries separate quietly. Strong: the ribbon opens 1.4 units farther before settling into the same outlined path. Reverse closes the ribbon back onto the source stroke."
canonical: https://generativeicons.com/icons/outline-stroke/
---

# Outline stroke animated icon

Convert a curved stroke to an editable closed ribbon. Light: the two boundaries separate quietly. Strong: the ribbon opens 1.4 units farther before settling into the same outlined path. Reverse closes the ribbon back onto the source stroke.

- Id: `outline-stroke`
- Category: Vector editing & design
- Search terms: expand stroke, stroke to path, stroke to fill, stroke to shape, convert stroke, flatten stroke, expand appearance, editable stroke, path from stroke
- Two states: Live stroke to Outlined stroke, 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/outline-stroke.lottie (dotLottie, 606160 bytes, sha256 4d980767f943fca5652b3379c956f525996c353505595ea263f16dfa85f4ec12)
- License: MIT

## Install

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

## React

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

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