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/text/hologram

Exports of @dioramajs/text/hologram.

View as Markdown
On this page
import { chance, default, flickerAt } from '@dioramajs/text/hologram'

Functions

chanceA uniform random number in [0, 1) for two counters: the same on every load.
flickerAtBrightness factor of the projection at `t` seconds for a `flicker` 0..1: steady most of the time, now and then a short stutter or a drop-out, decided per 30th of a second.
materialiseThe progress of the materialising scan at `t` seconds since it started: emitter, then scan.

Constants

defaultA heading becomes a 3D hologram in front of the page: a glowing emitter below it throws a cone of light up, and the letters float above as translucent slices stacked in depth, crossed by scan lines, shimmering, split in color and dropping out now and then, swaying a few degrees so the depth shows. The text stays in the DOM.