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

Exports of @dioramajs/text/marquee.

View as Markdown
On this page
import { default, strip } from '@dioramajs/text/marquee'

Functions

stripThe element's content laid out as the browser did, drawn once: backgrounds and borders of its descendants, images and inline SVGs, then the text. Undefined when there is nothing to draw.

Constants

defaultThe element's content runs past in an endless horizontal loop: text, logos and inline images drawn once and repeated by the GPU. It speeds up and leans with the scroll, may turn around when the page scrolls up, and slows to a stop under the pointer or keyboard focus. The DOM content stays where it is, once, for screen readers.

Interfaces

StripOne copy of the content drawn into a canvas, and where it sits in the box.