codeweb-dev

Tactile Highlight

Heroes 83

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

    112
  • Ghost Ether

    Ghost Ether

    49
  • Image Trail

    Image Trail

    38
  • Keyboard

    Keyboard

    36

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2.1K
  • SaaS Template

    SaaS Template

    2.6K
  • Hero

    Hero

    1.3K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1K
  • Hero 03

    Hero 03

    351
  • Hero Section

    Hero Section

    177
  • HeroSectionWithGradient

    HeroSectionWithGradient

    368
  • Glass Fold

    Glass Fold

    400