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

default const

The scroll-into-the-picture hero: while a pinned section scrolls, the picture grows from its box to the sticky stage, usually the whole screen.

View as Markdown
import { default } from '@dioramajs/media/zoom-scroll'

. zoom scales it up with its box, mask keeps the picture still at its full-screen framing and opens a window onto it, through grows it, flies past the screen and fades out to show what lies behind. Before the pin and under reduced motion the copy is the DOM picture.

const default: Effect<Params>

Defined in packages/media/src/zoom-scroll.ts.