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

Exports of @dioramajs/media/flare.

View as Markdown
On this page
import { along, default, GHOSTS } from '@dioramajs/media/flare'

Functions

alongThe light's x for a scroll `progress` 0..1: `travel` of the width across, centred on home.

Constants

defaultA light source over a photo: a glow with lens ghosts along the axis through the centre and an optional anamorphic streak, or a glossy band that sweeps over the highlights. It follows the pointer, travels with the scroll or stays put; the photo itself is untouched under it.
GHOSTSGhosts along the axis from the light through the centre of the box: where they sit on it (0 is the light, 1 the centre, 2 the mirror point), their radius as a share of the glow, how bright they are and their tint, like the coatings of a real lens.