---
title: "Flag animated icon"
description: "Flag animated icon (Tools). The flag is planted to mark the spot. Light: the flag lifts and plants with a dead stop, and the cloth whips once from the impact and settles. Strong: a higher lift (kept 1.4 inside the canvas), a harder plant that bounces once while two ground puffs flash out sideways at the foot of the pole, and the cloth whips harder with a decaying flutter. The pole stays rigid."
canonical: https://generativeicons.com/icons/flag/
---

# Flag animated icon

The flag is planted to mark the spot. Light: the flag lifts and plants with a dead stop, and the cloth whips once from the impact and settles. Strong: a higher lift (kept 1.4 inside the canvas), a harder plant that bounces once while two ground puffs flash out sideways at the foot of the pole, and the cloth whips harder with a decaying flutter. The pole stays rigid.

- Id: `flag`
- Category: Tools
- Search terms: pennant, banner, flagged, mark, mark spot, goal, destination, waypoint, mark as important, country flag
- 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/flag.lottie (dotLottie, 3567 bytes, sha256 ac4a469515d82751378d5b945fbebf4f6d97b9f26d8db827ed759b721f8217ca)
- License: MIT

## Install

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

## React

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

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