---
title: "Code generate animated icon"
description: "Code generate animated icon (AI · Creation). Two lines are typed between brackets; the cursor blinks off to wrap, on at the next line. Strong opens the brackets, types with word pauses, blinks once, closes them."
canonical: https://generativeicons.com/icons/code-generate/
---

# Code generate animated icon

Two lines are typed between brackets; the cursor blinks off to wrap, on at the next line. Strong opens the brackets, types with word pauses, blinks once, closes them.

- Id: `code-generate`
- Category: AI · Creation
- Search terms: ai coding, write code, vibe coding, code assistant, code writer, ai programmer, programming, coding, codegen, scaffold, ai developer
- 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/code-generate.lottie (dotLottie, 7150 bytes, sha256 19b5164da5de28a16e91473791ac91b1e4b653024ad5969357d132db7f604d54)
- License: MIT

## Install

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

## React

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

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