Components / effect

Slat Preloader

v1.0.2 · premium

Nine vertical slats fill behind a centered percentage, then lift from the center out to reveal the page.

Slat Preloader demo

Implementation

Nine vertical slats fill behind a centered percentage, then lift from the center out to reveal the page.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.2 · published

Source code

Download source ZIP
export function SlatPreloader({
  children, label = 'Loading', minDuration = 2400, maxWait = 9000, ready, waitForImages = true,
  contain = false, lockScroll = true, paper, ink, className, onComplete,

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.2 · Nine vertical slats fill behind a centered percentage, then lift from the center out to reveal the page.

Frequently asked questions

How does the percentage stay readable as the slats fill?

The centered percentage uses a difference blend to switch from dark over the paper to light over the filled slats. Set paper and ink to customize those two surfaces.

Do all the slats lift at the same time?

The center slat lifts first. The remaining slats lift in pairs toward the outside. Visitors who prefer reduced motion go straight to the page.