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

Exports of @dioramajs/blocks/shine.

View as Markdown
On this page
import { band, default } from '@dioramajs/blocks/shine'

Functions

bandWhere the band is `t` of the way through a sweep across a box of `width` x `height` px at `angle` (CSS gradient degrees, 90 sweeps left to right): the direction in box px with y up, the band's centre along it and its half width, px.

Constants

defaultA bright band sweeps across the element on hover, on a timer or as it comes into view, clipped to its rounded box: a glint on a call to action, a pricing card or a badge. The element stays DOM; the band draws over it and is gone between sweeps.