Skip to content

About

Block reveal text streaming effect

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Text block streaming

Block reveal text streaming effect

Inspired by This Tweet.

Use the site version · GitHub

Run

npm start

Open http://localhost:5183. Node 22+; no install or build step. Use PORT=3000 npm start to choose another port.

  • Type up to 600 characters and click Stream text, or press ⌘/Ctrl + Enter.
  • Block, Pixel, and Soft transformations; stream speed, effect speed (duration), per-character decode variation (±0–2 seconds), typeface, and color controls.
  • Pause, scrub, restart, loop, fullscreen, dark mode.
  • Settings persist locally. No API key, model, or server processing of your text.
  • Reduced motion disables initial autoplay. Explicit playback remains available.

npm run check checks JavaScript syntax. npm test verifies Unicode segmentation, timing, and word wrapping. Fonts and their licenses are bundled locally; the entire demo works offline.

blocks.js defines an authored vector alphabet. Block mode follows the reference: identical rounded square bodies for a/s/e, a 40%-wide and 40%-high ascender for b, a brief color flash, and a sharp swap to the finished letter. Other characters extend this geometric vocabulary. Block shapes are independent of the selected font; their slots remain fixed throughout the reveal. The saved setting key sculpt now selects Block mode.

stream.js owns the deterministic timeline, layout, and canvas renderer. Pixel retains the original sampled-tile effect. Soft retains the original distance-field morph. app.js owns playback and controls. Scrubbing uses the same render path as playback.

Reference: https://x.com/tvnxty/status/2095601307444728212 (saved as reference/original.mp4).

About

Block reveal text streaming effect

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages