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

span function

Seconds from the trigger until the number has landed and folded back into the text.

View as Markdown
import { span } from '@dioramajs/text/counter'
function span(
  p: { readonly delay: number; readonly duration: number; readonly stagger: number },
  style: Style,
  digits: number,
): number

Parameters

NameTypeDescription
p{ readonly delay: number; readonly duration: number; readonly stagger: number }
styleStyle
digitsnumber

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