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

A reading glass over the text: a thick biconvex lens in a thin metal ring follows the pointer, traced per pixel through both curved faces.

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

. The text under it comes up magnified in the middle, bends and splits into colors toward the rim; the glass reflects a studio, and on the page beside it lies its shadow with the light it focuses and the shadow of its handle. It leans into its motion and settles. The DOM text stays as it is around the lens.

const default: Effect<Params>

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