@dioramajs/media/scrub
Exports of @dioramajs/media/scrub.
import { default } from '@dioramajs/media/scrub'Constants
default | A `<video>` scrubbed by scroll: its time follows the pin of the sticky section it plays in, both ways, like the product films on Apple's pages. Seeks never queue: while one runs only the latest wanted time waits, so a long GOP stalls instead of piling up. Each decoded frame is copied into one of two textures and crossfades from the one before over the time the frames take to come, at most `blend`, so the picture moves smoothly between slow seeks and stays sharp when they are quick. At rest the video is the DOM; under reduced motion it keeps its poster. |