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

fold function

How far a drum or card stands out of the page at `t`, 0 flat: it rises at the trigger and unrolls after it lands at `land`, flat before the text takes over, so the hand-off shows nothing.

View as Markdown
import { fold } from '@dioramajs/text/counter'

.

function fold(t: number, land: number): number

Parameters

NameTypeDescription
tnumber
landnumber

Defined in packages/text/src/counter.ts.