deleted

Scroll Reveal

Text 31

About

Scroll Reveal animation

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

Code

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

Usage.tsx

import { ScrollReveal } from "@/components/ui/scroll-reveal";

const DemoScrollReveal = () => {
  return (
    <div className="w-full min-h-[200vh] bg-black dark:bg-white p-4 flex flex-col items-center">

      <div className="mt-[60vh] text-center  text-6xl  text-white dark:text-black opacity-50">
         <p>Scroll down</p>
      </div>
      <div className="mt-[30vh] flex w-full justify-center">
       <ScrollReveal 
          baseOpacity={0}
          enableBlur={true}
          baseRotation={10}
          blurStrength={15}
          scrollStart='top bottom'
          scrollEnd='bottom top'
          rotationEnd="center center"
          wordAnimationEnd="bottom top-=10%"
          textClassName="text-4xl md:text-5xl lg:text-6xl font-bold text-white dark:text-black"
        >
          When does a man die? When he is hit by a bullet? No! When he suffers a disease?
          No! When he ate a soup made out of a poisonous mushroom?
          No! A man dies when he is forgotten!
        </ScrollReveal>
      </div>
    </div>  
  );
};

export { DemoScrollReveal };

Dependencies

More by deleted

View all
  • Splash Cursor

    Splash Cursor

    1.3K
  • Star Border

    Star Border

    728
  • Tilted Scroll

    Tilted Scroll

    433
  • Waves Background

    Waves Background

    362
  • Squares Background

    Squares Background

    326
  • Prism

    Prism

    218
  • Grid Motion

    Grid Motion

    183
  • Circular Gallery

    Circular Gallery

    173

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    103
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • Motion Blur Text

    Motion Blur Text

    36
  • Text Loop

    Text Loop

    306
  • Text Reveal

    Text Reveal

    27
  • Apple Hello Effect

    Apple Hello Effect

    608
  • Animated Text

    Animated Text

    8
  • Lightning Text

    Lightning Text

    122