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

strip function

The element's content laid out as the browser did, drawn once: backgrounds and borders of its descendants, images and inline SVGs, then the text.

View as Markdown
import { strip } from '@dioramajs/text/marquee'

. Undefined when there is nothing to draw.

function strip(
  element: Element,
  ratio: number,
  widest: number,
): Promise<Strip | undefined>

Parameters

NameTypeDescription
elementElement
rationumber
widestnumber

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