Streaming Text
Tegaki can animate text as it arrives from a streaming API, as in an AI chat interface.
Approach
Section titled “Approach”Use uncontrolled mode: it follows the growing text and writes new characters as they arrive. The catchUp option speeds up playback when there’s buffered text, so the animation stays close to the stream without jumping.
Update text as chunks arrive from your API. The renderer writes whatever is new.
Tuning
Section titled “Tuning”speed: base playback speed multiplier (default1). Higher values write faster.catchUp: how hard the animation speeds up to close the gap when text arrives faster than it can be drawn.0disables catch-up (default). Typical range:0.2to2.
Live demo
Section titled “Live demo”See the streaming chat on the homepage for a live example.