Staaarter

Animated Waitlist Stats

A centered coming-soon screen with a supporting row of statistics (waitlist size, countries, testers, days to launch) that animate from zero up to their target value the moment the row scrolls into the viewport, followed by a decorative dark call-to-action button.

By Staaarter Team
Coming Soon
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/animated-waitlist-stats.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/coming-soon/comingsoon45.tsx instead.

Usage

The file also exports comingsoon45Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { ComingSoon45, comingsoon45Demo } from "@/components/blocks/coming-soon/comingsoon45";

export default function Page() {
  return <ComingSoon45 {...comingsoon45Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstring"Coming soon"Small label above the heading.
headingstring"The waitlist is already growing"Main heading.
descriptionstring"We're putting the finishing touches..."Supporting copy under the heading.
statsWaitlistStat[]noneStat items, each counts up from 0 to its value.
ctaLabelstring"Claim your seat"Label on the dark CTA button.
ctaHrefstring"#"Link target for the CTA button.
classNamestringnoneExtra classes for the outer section element.

Types

export interface WaitlistStat {
  label: string;
  value: number;
  suffix?: string;
}

Behavior notes

  • Each stat is real client state: an IntersectionObserver on that stat's wrapper starts a requestAnimationFrame count-up from 0 to its target value the first time it enters the viewport, and only once (a ref guards against re-triggering on subsequent scrolls).
  • No Date.now() or Math.random() is used, the animation progress is driven by performance.now() timestamps inside the rAF loop, not render-time calls.
  • The "Claim your seat" button is a decorative link (`render={<Link href={ctaHref} />}`), it has no submit behavior.