animbits

Text Highlight

Text 101

About

A text wrapper that animates a hand-drawn marker-style highlight bar sliding in behind a word or phrase, for drawing attention to key text on a page.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Text Highlight to your project and fits it to your theme.

Code

How Text Highlight is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import TextHighlight from "@/components/ui/text-highlight";

export default function TextHighlightDemo() {
  return (
    <div className="flex min-h-[400px] w-full items-center justify-center p-8">
      <p className="text-3xl font-semibold text-center text-foreground">
        Make your headline{" "}
        <TextHighlight color="#fde047">stand out</TextHighlight> with a marker
        highlight.
      </p>
    </div>
  );
}

Dependencies

More by animbits

View all
  • Dia Text

    Dia Text

    202
  • Gooey Blobs Loader

    Gooey Blobs Loader

    179
  • Linear Carousel

    Linear Carousel

    154
  • Skeleton Loader

    Skeleton Loader

    143
  • Word Carousel Text

    Word Carousel Text

    127
  • Image Text

    Image Text

    78
  • Morphing Loader

    Morphing Loader

    60
  • SVG Text Draw

    SVG Text Draw

    59

More in Text

View all
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    6
  • Rainbow Text Effect

    Rainbow Text Effect

    59
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    133
  • Shine Border

    Shine Border

    1K
  • Text Reveal

    Text Reveal

    382
  • NeonRGBTextEffect

    NeonRGBTextEffect

    155
  • Scroll Fill Headline

    Scroll Fill Headline

    32
  • Typography

    Typography

    12