image-panel live demos
Fully featured viewport-only slideshow element. No UI of its own but highly configurable display element, with transitions, dragging and accessibility. Currently powering the homepage and lightbox on the main site.
The panel has no controls of its own: the buttons above use its prev(), next(), play() and pause() methods, and the caption comes from its slidechange event. Click the photo and use the arrow keys, or swipe it. It holds while it has focus, and in a hidden tab.
<image-panel src="samples/slideshow-example.json"
keyboard swipe aria-label="Sample photos"></image-panel>
The photos and their settings (shuffle, a 6 second interval, a 1 second fade) are in slideshow-example.json.