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

default const

The heading breaks into 3D shards that fly apart, tumble and catch the light: thin panes of glass with the text printed on them, thick chunks of stone with rough walls and a puff of dust, or torn paper that flutters down.

View as Markdown
import { default } from '@dioramajs/text/shatter'

. On a click from the point of impact, scrubbed as the heading scrolls out, as a light crack under the pointer, or assembled from flying shards once in view. At rest the element is plain DOM text.

const default: Effect<Params>

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