@dioramajs/media/spin
Exports of @dioramajs/media/spin.
import { default, pick } from '@dioramajs/media/spin'Functions
pick | Where a turn shows: frame `pos` (fractional, unbounded with `loop`) of a row of `per` frames, as the two frames to mix and the share of the second. Without `loop` the ends hold. |
Constants
default | A product turned by drag through photos taken around it; each turn shows a whole frame unless `blend` mixes neighbours, and with `inertia` a flick coasts on. Frames load coarse to fine like `sequence`; without WebGL the poster stays. |