The timing engine every caption style shares: pages a timed transcript, finds the word being spoken and how far into it the voice is, and decides when a page leaves the screen.
pnpm dlx shadcn@latest add "https://www.remocn.dev/r/caption-core.json"