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

Exports of @dioramajs/text/magnet.

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

Constants

defaultLetters react to the pointer like magnets in 3D: they are thin lit slabs that push away and turn their faces from it, lean toward it, rise toward the viewer like a dock, or tumble apart, casting soft shadows on the page. Each letter rides a spring, so it wobbles back into place when the pointer leaves. At rest the element is plain DOM text.