Cnippet

Scroll Reveal

Features 19

About

Elements animate into view when they enter the viewport. Supports any Motion variant, configurable thresholds, and a once-only mode.

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";

export default function ScrollRevealFeatureSection() {
  return (
    <div className="flex min-h-50 items-center justify-center px-6">
      <div className="flex w-full max-w-2xl flex-col items-center gap-6 sm:flex-row sm:gap-10">
        <ScrollReveal
          transition={{ duration: 0.6, ease: "easeOut" }}
          variants={{
            hidden: { opacity: 0, x: -32 },
            visible: { opacity: 1, x: 0 },
          }}
          viewOptions={{ amount: 0.4 }}
        >
          <div className="flex h-36 w-full items-center justify-center rounded-2xl border border-border bg-gradient-to-br from-violet-500/10 to-purple-500/5 sm:h-44 sm:w-56">
            <span className="text-5xl">✦</span>
          </div>
        </ScrollReveal>

        <ScrollReveal
          transition={{ delay: 0.15, duration: 0.6, ease: "easeOut" }}
          variants={{
            hidden: { opacity: 0, x: 32 },
            visible: { opacity: 1, x: 0 },
          }}
          viewOptions={{ amount: 0.4 }}
        >
          <div className="flex-1">
            <p className="font-semibold text-primary text-xs uppercase tracking-widest">
              New
            </p>
            <h2 className="mt-1 font-bold text-2xl text-foreground">
              Motion-first design system
            </h2>
            <p className="mt-2 text-muted-foreground text-sm leading-relaxed">
              164 animated components built on Motion and Tailwind — ready to
              drop into your next project and customise in seconds.
            </p>
          </div>
        </ScrollReveal>
      </div>
    </div>
  );
}

Dependencies

More by Cnippet

View all
  • Team

    Team

    1.3K
  • Davincho Hero-1

    Davincho Hero-1

    683
  • Aero Hero-3

    Aero Hero-3

    558
  • Features

    Features

    510
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    487
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    465
  • Blogs

    Blogs

    396
  • Aero Hero-1

    Aero Hero-1

    356

More in Features

View all
  • Features 8

    Features 8

    3.1K
  • Features 2

    Features 2

    322
  • Grid Feature Cards

    Grid Feature Cards

    1.9K
  • Feature Sections

    Feature Sections

    52
  • Feature with advantages

    Feature with advantages

    278
  • Feature Section with card gradient

    Feature Section with card gradient

    169
  • Feature Modern

    Feature Modern

    17
  • Features 4

    Features 4

    368