---
title: "Text highlight animated icon"
description: "Text highlight animated icon (Text & document editing). A highlighter draws a band under the passage that stays. Light: one smooth pass with the tip riding the ink. Strong: the marker draws back, strikes across in one decisive stroke, and flicks up before resting on the band end."
canonical: https://generativeicons.com/icons/text-highlight/
---

# Text highlight animated icon

A highlighter draws a band under the passage that stays. Light: one smooth pass with the tip riding the ink. Strong: the marker draws back, strikes across in one decisive stroke, and flicks up before resting on the band end.

- Id: `text-highlight`
- Category: Text & document editing
- Search terms: highlighter, marker, highlighter pen, highlight color, highlight colour, background color, background colour, mark text, emphasize, felt tip
- 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/text-highlight.lottie (dotLottie, 9877 bytes, sha256 b8ef6d9c99b90e65d8904648ccb13d5114f2c4b51ab6992a64df94ffb942cf3d)
- License: MIT

## Install

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

## React

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

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