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/shimmer

Exports of @dioramajs/text/shimmer.

View as Markdown
On this page
import { default, ramp, rows } from '@dioramajs/text/shimmer'

Functions

rampThe colors as a ramp that comes back to the first one, mixed in OKLab: wraps without a seam.
rowsOne instanced row per line of text across the whole relief, cut halfway between lines, so every pixel of the text, its light and its shadow is drawn once with the line it belongs to.
splitThe words of a color list: spaces or commas apart, outside parentheses.

Constants

defaultLetters become a material lit in a studio: polished chrome, gold, holographic foil or clear glass, with a rounded bevel along every edge built from the shape of the glyphs. The reflections slide as the pointer moves and the page scrolls, and a light sweeps across on hover, as the text comes into view or on a loop. The text stays in the DOM, hidden behind the copy.