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

Scene interface

The scene: box size, phrase spacing and eye distance in px, and the look.

View as Markdown
import type { Scene } from '@dioramajs/text/tunnel'
interface Scene

Members

NameTypeDescription
readonly blurnumber

Blur at the eye, screen px.

readonly depthnumber

px between two phrases.

readonly eyenumber

px from the focus to the eye.

readonly fadenumber
readonly heightnumber
readonly styleStyle
readonly twistnumber

Turn of the helix from one phrase to the next, radians.

readonly widthnumber

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