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/media/video-hover

Exports of @dioramajs/media/video-hover.

View as Markdown
On this page
import { default, sources } from '@dioramajs/media/video-hover'

Functions

sources`<source>` elements for URLs separated by spaces or commas, typed by their extensions.

Constants

defaultA thumbnail plays a short muted video while the pointer rests on it or its link has keyboard focus, crossfading from the image and back. The video loads only then. With `scrub` the pointer's x picks the moment instead of playing. At rest the image is the DOM and nothing is drawn.