# default

const in `@dioramajs/media/scrub`

```ts
import { default } from '@dioramajs/media/scrub'
```

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.

```ts
const default: Effect<Params>
```

Defined in [packages/media/src/scrub.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/media/src/scrub.ts#L66).
