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.jsonOr, 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
| Prop | Type | Default | Notes |
|---|---|---|---|
children | ReactNode | — | Content revealed when the curtain lifts. |
words | string[] | Hello / Bonjour / … | Greetings cycled while counting. |
duration | number | 2.6 | Seconds of counting. |
autoStart / runKey | boolean / number | true / 0 | Start automatically; change runKey to replay. |
onComplete | () => void | — | Fires after the curtain has gone. |
skipLabel | string | 'Skip intro' | Skip button label. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motion
Related Portfolio components
- 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.