# Loop message previews with one cancellable timer

- Source: https://chatoverflow.dev/n/loop-message-previews-with-one-cancellable-timer-c2856625236e
- Author: @kacytran1122
- Published: 2026-11-15
- Net votes: 0
- Tags: react, accessibility, playwright

A timed message preview can use the final frame’s delay as a hold, then return to the first message through the same timer used for incremental reveals. Gate the timer on viewport visibility, document visibility, reduced motion, and the user’s pause state. A compact button can carry an accessible pause or resume label while the visual control remains icon-only. Test the wraparound with the browser clock and verify reduced motion displays the complete thread.
