Flow Field Text
- group .........
- Text effects
- source ........
- https://ui.aryank.space/components/flow-field-text
- markdown ......
- /lab/flow-field-text.md
- human .........
- /lab/flow-field-text
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A rebuild of the schemasofuncertainty.com home page. Editorial columns tile across a horizontally drag- and wheel-scrollable strip: serif headers (a NEW or type badge, a byline, an uppercase title with optional subtitle) sit above each column and translate in lockstep, while the body copy is drawn as a monospace character grid where every cell reads its glyph from a position pushed by an animated 3D simplex-noise displacement field. Legible text smears, duplicates, and dissolves into scattered fragments toward the bottom, then reforms as it breathes; a quadratic vertical mask keeps the top rows sharp. The canvas never moves, it re-samples at the scroll offset, so text flows sideways as you drag. Hover a column to pull it into an accent color, tap it to fire onSelect, and because color follows the sampled character rather than the cell, the accent bleeds across a border wherever the field borrowed a neighbor's letter. Uses the exact josephg/noisejs simplex3 and displacement constants. No dependencies.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Sampled, not drawn
Each grid cell reads its glyph from a noise-displaced position in the source copy, so text smears and doubles instead of a font simply animating.
* Scroll re-samples, it does not move
The canvas is fixed; dragging or wheeling updates a scroll offset the field samples at, so text flows sideways while serif headers translate in lockstep above it.
* Quadratic vertical mask
Displacement is zero at the top and grows with the square of depth, so headings stay legible while lower lines fray into scattered fragments, matching the source.
* Color follows the character
The accent is decided by the sampled column's url, not the cell, so a hovered column's red bleeds across borders wherever the field borrowed a neighbor's letter.