codeweb-dev

Tactile Highlight

Heroes 93

About

An animated text highlight that draws a background block behind text on scroll-into-view or hover, using mix-blend-difference for automatic light/dark contrast.

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

Code

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

Usage.tsx

import TactileHighlight from "@/components/ui/tactile-highlight";

export default function TactileHighlightDemo() {
  return (
    <div className="flex flex-col items-center justify-center py-24 px-6 text-center min-h-[50vh]">
      <p className="text-4xl md:text-6xl font-bold tracking-tighter text-zinc-900 dark:text-zinc-50 leading-[1.2] max-w-4xl">
        Our mission is to build{" "}
        <TactileHighlight direction="left" delay={0.2} trigger="inView">
          Better Interfaces.
        </TactileHighlight>
      </p>
    </div>
  );
}

Dependencies

More by codeweb-dev

View all
  • Animated Gradient

    Animated Gradient

    116
  • Ghost Ether

    Ghost Ether

    63
  • Image Trail

    Image Trail

    41
  • Keyboard

    Keyboard

    39

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.7K
  • Hero

    Hero

    1.3K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1.1K
  • Editorial Collage Hero

    Editorial Collage Hero

    507
  • Hero Section

    Hero Section

    445
  • Aero Hero-3

    Aero Hero-3

    618
  • Hero with group of images, text and two buttons

    Hero with group of images, text and two buttons

    442