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

Exports of @dioramajs/media/curtain.

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

Functions

openingOfHow far an element's curtain is open, for tests.

Constants

defaultA cover picture behind a curtain that opens with scroll, both ways: strips that slide away one after another, two halves that part from the centre, or a liquid edge that drains past it. The curtain is a colour or a second picture, and casts a soft shadow on the picture as it goes.