@dioramajs/media/carousel
Exports of @dioramajs/media/carousel.
On this page
import { default, onRing, ringRadius } from '@dioramajs/media/carousel'Functions
onRing | The place on a ring of `radius` px at `theta` radians from the front. |
ringRadius | Radius that keeps `count` cards `width` px wide apart by `spacing` widths, px. |
Constants
default | The 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
RingPose | A card's place on the ring at angle `theta` from the front, radians. |
Types
CarouselStyle | Where the viewer stands: before a ring of pictures, or inside one. |