Components / effect
Curtain Counter Preloader
A 0 to 100 counter over four dark panels that open like a curtain, alternate panels sliding up and down, to reveal the page.

Implementation
A 0 to 100 counter over four dark panels that open like a curtain, alternate panels sliding up and down, 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.1 · published
Source code
Quality evidence
Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .
Changelog
v1.0.1 · A 0 to 100 counter over four dark panels that open like a curtain, alternate panels sliding up and down, to reveal the page.
Frequently asked questions
When does the counter reach 100?
It holds at 90 until every image already in the document and the web fonts have loaded, never finishing sooner than minDuration. If an asset never arrives it finishes after maxWait. Pass ready={false} to hold it until your own data has loaded.
Can I show it only on the first visit?
The component plays every time it mounts. Render it conditionally, for example only on the home route or when a stored timestamp is old enough.