@dioramajs/text/hologram
Exports of @dioramajs/text/hologram.
import { chance, default, flickerAt } from '@dioramajs/text/hologram'Functions
chance | A uniform random number in [0, 1) for two counters: the same on every load. |
flickerAt | Brightness 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. |
materialise | The progress of the materialising scan at `t` seconds since it started: emitter, then scan. |
Constants
default | A 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. |