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

anchors const

Layout is read only when something may have moved (resize, observed size changes, fonts).

View as Markdown
import { anchors } from '@dioramajs/diorama/core'

. Each frame just offsets the cached page boxes by the scroll position. Live anchors near the viewport are re-read every frame, since sticky, fixed and transformed boxes move without a layout change.

const anchors: Plugin<'anchors'>

Also exported from @dioramajs/core.

Defined in packages/core/src/web/anchors.ts.