Intro Preloader

Greeting words flick by while a big counter climbs 0→100, then the ink curtain lifts with a trailing curve that flattens as it leaves and the page settles from a slight zoom. Skippable.

Try it: Watch the count and curtain; press Skip (or Esc), or Replay in the demo.

Brings its own background. Paints its own ink curtain over your content via light and dark: variants, so it matches the host page. Override the surface with className (e.g. bg-*, rounded-*, min-h-*).

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/intro-preloader.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/intro-preloader. You can also copy the source into components/ui/intro-preloader.tsx (view on GitHub).

Usage

import { IntroPreloader } from '@/components/ui/intro-preloader'

Props

Component props
PropTypeDefaultNotes
childrenReactNode—Content revealed when the curtain lifts.
wordsstring[]Hello / Bonjour / …Greetings cycled while counting.
durationnumber2.6Seconds of counting.
autoStart / runKeyboolean / numbertrue / 0Start automatically; change runKey to replay.
onComplete() => void—Fires after the curtain has gone.
skipLabelstring'Skip intro'Skip button label.
classNamestring—Extra classes merged onto the root.

Dependencies

  • motion
  • Reading Progress + TOC

    A spring-smoothed reading bar and a sticky table of contents that lights the section on screen, with a live “min left” estimate — made for long-form blog posts.

  • Project Lightbox

    Thumbnails open into a detail modal through a shared-element morph — artwork flies from its tile to the hero slot while copy staggers in. Focus trapped and restored, Esc closes, ←/→ browse.

  • Résumé Download Button

    The document glyph prints itself line by line, then drops into a tray as the file downloads and the label settles on “Saved”. Live status for screen readers.

  • Section Spy Nav

    Sticky in-page navigation that follows your reading position: a shared pill springs between links as sections cross the reading line, a hairline fills with overall progress, and clicks glide and…

  • Services Cards

    Four offers in one row: hover or focus a card and it swells while the others yield; a cursor-lit border follows the pointer, the icon tile tilts and deliverables stagger in with ticking checks.

  • Portfolio Footer

    A closing statement in giant display type — letters rise out of masks on scroll-in and a light follows the cursor across the glyphs — with a slow ribbon marquee, links and back-to-top.

See all 35 Portfolio components