Highlight Marker Text

Editorial copy annotated by hand: as it scrolls into view a marker sweeps behind one phrase, an underline draws under the next, a pen circle loops another and a strike crosses one out, in sequence. Wraps across lines.

Try it: Scroll the paragraph into view — the marks draw one after another.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/highlight-marker-text.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/highlight-marker-text. You can also copy the source into components/ui/highlight-marker-text.tsx (view on GitHub).

Usage

import { HighlightMarkerText } from '@/components/ui/highlight-marker-text'

Props

Component props
PropTypeDefaultNotes
segments(string | { text, mark?: 'highlight' | 'underline' | 'circle' | 'box' | 'strike', tone?: 'amber' | 'lilac' | 'mint' | 'rose' })[]DEFAULT_SEGMENTSPlain strings and marked phrases in reading order.
as'p' | 'h2' | 'h3' | 'blockquote''p'Element for the text.
staggernumber320ms between marks.
oncebooleantrueDraw only on the first scroll-in.
classNamestring—Extra classes merged onto the text.

Dependencies

  • motion
  • Sparkle Text

    A word that catches the light: four-point stars bloom and fade around it on staggered clocks while the letters carry a soft ink-to-accent gradient. Sparkles on scroll-in or hover, then rests.

  • Word Cycle Text

    A headline whose key word keeps changing its mind: each word rises letter by letter out of a soft blur inside a tinted capsule that resizes on a spring while the line glides to make room.

  • Ink Bleed Text

    A serif headline that soaks into the page: each word lands as a wet blot of ink that spreads through the paper fibres (an SVG turbulence displacement relaxing to zero), then dries crisp from a soft…

  • Charm Text

    A sentence with a few enchanted words. Hover, focus or tap one and it recolours, draws an underline and a tiny glyph pops out on a spring; click pins it on. A chip variant sets glyph pills inline…

  • Tumble Letters

    A headline of physical letters: drop them and they fall, spin, bounce and pile against each other on the floor; hover lifts letters in a wave, any letter can be grabbed and flung, and Reassemble…

  • Scroll Text Fill

    A large editorial statement whose words light up one by one as you scroll, each rising a few pixels into place; accent words get a sweeping underline. The full sentence is exposed to screen readers…

See all 15 Text Animations components