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/split-flap

Exports of @dioramajs/text/split-flap.

View as Markdown
On this page
import { default, drum, DRUMS } from '@dioramajs/text/split-flap'

Functions

drumThe characters a flap walks through in order, the blank first.
pathThe faces a character shows on its way from `from` to `to`, both included: along the drum, the last `flips` steps before the target, or `flips` random faces. One step when they are equal.

Constants

defaultThe departure board: each character flips through the faces of a drum to its letter, when the text comes into view and whenever the site changes it. The DOM text is the truth for screen readers, search and copy; the flaps are drawn over it.
DRUMSDrums by name, the blank first; any other value of `chars` is the drum itself.