Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

@dioramajs/media/spin

Exports of @dioramajs/media/spin.

View as Markdown
On this page
import { default, pick } from '@dioramajs/media/spin'

Functions

pickWhere 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

defaultA 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.