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/polaroids

Exports of @dioramajs/media/polaroids.

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

Functions

layoutWhere the prints lie on a `width` x `height` table, the same for a seed on every load. `sizes` are the prints, `at` the centres of their images in the page (for `grid`). `rotate` in degrees, `spread` 0..1 how far they stray from their places.

Constants

defaultThe images of a container as prints scattered on a table, each at a seeded angle: drag one to move it to the top, click one to bring it forward, click the top one to hold it up large (or follow its link). Fires `dio:index` when a print comes on top and `dio:open` when one is held up or put back.

Interfaces

SpotWhere a print lies: its centre px from the box centre (y up), its turn in radians.

Types

PolaroidsStyleHow the prints lie on the table.