Block Reveal Text
- group .........
- Text effects
- source ........
- https://ui.aryank.space/components/block-reveal-text
- markdown ......
- /lab/block-reveal-text.md
- human .........
- /lab/block-reveal-text
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
An editorial scroll page where every copy block is split into lines and each line is uncovered by a colored bar that wipes across left to right then retracts, timed off a scroll trigger so the text reveals line by line as it enters view, with full-bleed image sections between the copy.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Wipe then retract
Each line's bar scales in from the left to cover the line, the line is flipped to visible under it, then the bar's origin switches to the right and it scales back out, so the reveal reads as a bar sliding through.
* Line-wrapped SplitText
SplitText breaks each block into lines, then each line is wrapped in a positioned container that hosts its own reveal bar; the wrappers are unwound on cleanup so the DOM is left as it started.