Mask Reveal Preloader
- group .........
- Preloaders and loaders
- recording .....
- https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/mask-reveal-preloader.mp4
- source ........
- https://ui.aryank.space/components/mask-reveal-preloader
- markdown ......
- /lab/mask-reveal-preloader.md
- human .........
- /lab/mask-reveal-preloader
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A one-shot intro: a logo slides in char by char over a filling progress bar with a mix-blend footer line, then an SVG-shaped mask (a rounded capsule cut from a solid fill) scales up to punch through and reveal the hero, whose image settles from a zoom as the headline, footer copy, and pill buttons animate in.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* SVG mask cut-out
The reveal layer composites a solid fill against the capsule SVG with mask-composite, so the shape is a hole in the fill; scaling that layer to 6x grows the hole until the hero shows through.
* Nested onStart timeline
When the pill buttons pop in, their onStart appends icon clip-path and label tweens to the same timeline with negative delays, so the icon fills and label rises overlap the button scaling.