The timer half of useFlashHighlight, without React: after FLASH_HIGHLIGHT_DELAY_MS it scrolls the element to the centre (smoothly, unless the user prefers reduced motion) and reports true, then reports false FLASH_HIGHLIGHT_DURATION_MS later.
true
false
A cleanup that cancels whatever hasn't run yet.
The timer half of useFlashHighlight, without React: after FLASH_HIGHLIGHT_DELAY_MS it scrolls the element to the centre (smoothly, unless the user prefers reduced motion) and reports
true, then reportsfalseFLASH_HIGHLIGHT_DURATION_MS later.