Text Brush Shimmer Sweep

Sweep a travelling highlight through a label by putting a moving gradient on the TextStyle itself — the glyphs are painted by the brush, so there is no overlay, no clip and no measured width to keep in sync. Covers declaring the infinite transition unconditionally so the sweep does not restart every time the label appears, why the sweep head must be a pure high-contrast colour rather than the label's own, why the gradient stops are pixels and must travel past both ends, and that a brush replaces the text colour outright. Use when a shimmering label jumps back to the start whenever it reappears, when the gleam is invisible against the label's own grey, or when setting a brush makes a carefully chosen text colour vanish.

maxrave-dev 512df6b 8.3 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/text-brush-shimmer-sweep commit 512df6bfee

Frequently asked questions

npx skillmds@latest add maxrave-dev/text-brush-shimmer-sweep