Components / effect

Slit Window Preloader

v1.0.0 · premium

A caption and a hairline progress line on a plain sheet. The sheet then splits into a thin slit, widens into a window onto your page, and opens to full bleed.

Slit Window Preloader demo

Implementation

A caption and a hairline progress line on a plain sheet. The sheet then splits into a thin slit, widens into a window onto your page, and opens to full bleed.

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

Source code

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

Quality evidence

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

Changelog

v1.0.0 · A caption and a hairline progress line on a plain sheet. The sheet then splits into a thin slit, widens into a window onto your page, and opens to full bleed.

Frequently asked questions

What does the window show?

Your real page. The four panels move apart to leave a gap, so whatever sits in the middle of your hero is what visitors see first. Place the strongest part of the image or layout there.

How does the hairline relate to loading?

It is the progress value. It fills toward 90% over minDuration, holds there until every image already in the document and the web fonts have loaded, then completes and starts the slit. If an asset never arrives it finishes after maxWait.