Highlight Sweep

listened to
About this component

Highlight Sweep

An inline phrase that gets a soft highlight swept in behind it from the left when it scrolls into view, like a marker drawn across the words, without the text moving.

Usage

The import and the props worth knowing about, in one place.

import { Text16 } from "@/components/beste/component/text16";

<h2 className="font-serif text-5xl">
  A practice where you are <Text16 text="listened to" />, all the way through.
</h2>

<Text16 text="on purpose" highlightClassName="bg-primary/20" delay={0.6} />

Playground

Turn the props on the right; the snippet under them is what you would write to get what you see.

listened to
Usage
import { Text16 } from "@/components/beste/component/text16";

<Text16
  text="listened to"
  className="font-serif text-2xl leading-[1.1] tracking-[-0.02em] text-foreground md:text-3xl"
/>

Props

Read from the component's own type, so this cannot drift from what it accepts.

PropTypeDefaultDescription
text*stringThe phrase to highlight; render it inline inside a heading or a sentence
trigger"view" | "mount"
delaynumber
durationnumber
highlightClassNamestringThe highlight surface, e.g. "bg-muted" (default) or "bg-primary/20"
classNamestring

More Text components

View all Text

Progressrarelyfeelslikeprogresswhileitishappening.Sometimesitisshowingup.

Scroll Highlight

A passage whose words brighten one after another in reading order as it scrolls through the viewport, and dim again on the way back, like a finger following the line.

listened to the end

Underline Draw

An inline phrase whose hairline underline draws itself in from the left when it scrolls into view. Drop it inside a heading or a sentence to mark the words that matter.

The fog lifts a little later each morning.

Fog Clearing

Text hidden behind fog that clears across it from left to right along one soft edge, so the words emerge in reading order without moving at all.

Notheard.

Strike and Replace

A sentence that corrects itself: a line is drawn through the old word from left to right, and the better word settles in beside it out of a soft blur.

Nothing changesall at once.

Line Reveal

Lines of text that rise into view out of their own clipped rows, one after another, the way a heading is unmasked line by line.

Roomtobreathe.

Turning Word

A sentence whose one word takes turns: each candidate blurs up into place as the last blurs out, on a timer that stops when reduced motion is preferred.