Loader
Meter Loader
NewA big percentage counts up to 100 over a thin progress line, then the screen slides away.
npx motionsnack add meter-loaderCustomize
<MeterLoader />Props
10 properties
| Property | Type | Default | Description |
|---|---|---|---|
| background | string | zinc-100 / zinc-900 in dark | Colour of the loader's panels / backdrop. |
| color | string | zinc-950 / white in dark | Colour of text, numbers and lines drawn on it. |
| contained | boolean | false | Fill the nearest positioned parent instead of the whole window. |
| loopDelayMs | number | 1200 | Pause before a looped loader starts again, in ms. |
| onPhase | (phase: 'in' | 'out' | 'done', revealAfterMs?: number) => void | - | Called on every phase change. With 'out' it also says after how many ms the page under the loader is visible enough to start its own animation. |
| className | string | '' | Extra classes on the loader. |
| fillMs | number | 1600 | How long the line and the number take to go from 0 to 100, in ms. |
| slideMs | number | 900 | How long the screen takes to slide up and away, in ms. |
| minDurationMs | number | 0 | Minimum time on screen before it starts leaving, in ms. The loader never leaves before the fill is finished. |
| loop | boolean | false | Start over a moment after it finishes. For demos; a real page shows it once. |
About Meter Loader
A full-screen intro with a large counter running from 0 to 100 and a thin line filling under it. When it is full the whole screen slides away and uncovers the page. It covers the whole window by default or just its parent with the contained prop, reports its phases through onPhase so the page can start its own animation at the right moment, and is skipped for visitors who prefer reduced motion. Colours follow the light and dark look or come from props.
What's included
- Counter from 0 to 100 with a progress line
- Fill and slide duration as props
- Announced to screen readers as a progress bar
- Whole window or contained in a parent
- Phase callback for the page under it
- Light and dark, skipped with reduced motion
- Type
- Animated React loader component
- Library
- Components · Loader
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-11-20
- Install
npx motionsnack add meter-loader