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

Exports of @dioramajs/media/carousel.

View as Markdown
On this page
import { default, onRing, ringRadius } from '@dioramajs/media/carousel'

Functions

onRingThe place on a ring of `radius` px at `theta` radians from the front.
ringRadiusRadius that keeps `count` cards `width` px wide apart by `spacing` widths, px.

Constants

defaultThe images of a container on a 3D ring that turns with a drag, a sideways wheel, keys, the page scroll or by itself, the front picture enlarged; a click on a picture turns it to the front, a click on the front one follows its link. Autoplay comes with a pause button and holds under the pointer and focus. Fires `dio:index` when a picture reaches the front.

Interfaces

RingPoseA card's place on the ring at angle `theta` from the front, radians.

Types

CarouselStyleWhere the viewer stands: before a ring of pictures, or inside one.