Constellation Preloader
A dot weaves a star, then opens to reveal your page.
Features
- •One idea, start to finish — Everything grows out of one dot and returns to it: ring, star and sunburst, then the same dot opens like a window onto your page.
- •A thread that weaves the star — The star is drawn as one continuous thread from dot to dot, and works for any number of dots from 8 to 16.
- •Three exits — The dot expands to reveal the page, the screen collapses into the dot, or a simple fade, with your own timing.
- •Crisp at any size — SVG with hairline strokes that stay sharp on every screen; the figure scales down to fit phones.
- •Ready for real sites — Locks scrolling while it plays, can show once per session, calls onComplete when the page is revealed, and fills a section instead of the window if you like.
- •Considerate — Announced as loading to screen readers, pauses while offscreen, and with reduced motion it simply fades between shapes.
Props API Reference
13 configurable props| Prop | Type | Default | Description |
|---|---|---|---|
| dots | number | 12 | Dots on the ring (8–16). |
| stepDuration | number | 1.2 | Seconds each shape holds. |
| size | number | 220 | Figure size in px; it shrinks on small screens. |
| color / backgroundColor | string | "#FFFFFF" / "#000000" | Dots and lines, and the screen. |
| lineOpacity | number | 0.8 | Opacity of the lines (0–1). |
| exitStyle | "expand" | "collapse" | "fade" | "expand" | How the page is revealed. |
| exitDuration | number | 0.9 | Seconds for the reveal. |
| fullscreen | boolean | true | Cover the window, or fill the nearest positioned parent. |
| lockScroll | boolean | true | Stop the page scrolling while it plays. |
| showOncePerSession | boolean | false | Skip it after the first visit in a browser session. |
| zIndex | number | 9999 | Stacking order. |
| onComplete | () => void | undefined | Called once the page is revealed. |
| className | string | undefined | On the wrapper. |