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

Exports of @dioramajs/media/horizontal.

View as Markdown
On this page
import { default, drift, speedOf } from '@dioramajs/media/horizontal'

Functions

driftFraming of a card's picture by where the card is: scale and sideways shift (box units). The picture lags the card, shifted against the way it crosses the screen.
speedOfThe speed a row hands its cards: signed bend and stretch, for tests.

Constants

defaultThe horizontal-scroll section: while the page scrolls down through a tall section, the row of cards on its sticky stage slides sideways. The row is a native horizontal scroller the effect drives, so links, focus, keys and swipes keep working; the copies of its pictures bend, skew or ride a wave and stretch with its speed, and settle when it stops.