Manu Arora

Hero Highlight

Heroes 932

About

A background effect with a text highlight component, perfect for hero sections.

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

Code

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

Usage.tsx

"use client";
import { motion } from "framer-motion";
import { HeroHighlight, Highlight } from "@/components/ui/hero-highlight";

export function HeroHighlightDemo() {
  return (
    <HeroHighlight>
      <motion.h1
        initial={{
          opacity: 0,
          y: 20,
        }}
        animate={{
          opacity: 1,
          y: [20, -5, 0],
        }}
        transition={{
          duration: 0.5,
          ease: [0.4, 0.0, 0.2, 1],
        }}
        className="text-2xl px-4 md:text-4xl lg:text-5xl font-bold text-neutral-700 dark:text-white max-w-4xl leading-relaxed lg:leading-snug text-center mx-auto "
      >
        With insomnia, nothing&apos;s real. Everything is far away. Everything
        is a{" "}
        <Highlight className="text-black dark:text-white">
          copy, of a copy, of a copy.
        </Highlight>
      </motion.h1>
    </HeroHighlight>
  );
}

Dependencies

More by Manu Arora

View all
  • Container Scroll Animation

    Container Scroll Animation

    10.6K
  • Aurora Background

    Aurora Background

    4.6K
  • Glowing Effect

    Glowing Effect

    4.5K
  • Timeline

    Timeline

    4.4K
  • Sparkles

    Sparkles

    4.2K
  • Lamp

    Lamp

    3.8K
  • Sidebar

    Sidebar

    3.8K
  • Bento Grid

    Bento Grid

    2.8K

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2.1K
  • SaaS Template

    SaaS Template

    2.6K
  • Hero 03

    Hero 03

    356
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1K
  • Hero

    Hero

    1.3K
  • HeroSectionWithGradient

    HeroSectionWithGradient

    373
  • Home Section

    Home Section

    75
  • Hero Section

    Hero Section

    438