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/blocks/glow

Exports of @dioramajs/blocks/glow.

View as Markdown
On this page
import { default, distanceTo, MAX_CARDS } from '@dioramajs/blocks/glow'

Functions

distanceToDistance in px from a point to a box, 0 inside.

Constants

defaultA soft light follows the pointer over a grid of cards and lights their borders, and in the fill modes their surfaces, wherever it is near: across the gaps onto the neighboring cards. The cards stay DOM; the light draws over them.
MAX_CARDSCards one instance lights: one instanced draw.