Slideshow Plugin
Slideshow plugin adds slideshow autoplay feature to the lightbox.
Documentation
The plugin adds the following Lightbox
properties.
Property | Type | Description |
---|---|---|
slideshow | { | Slideshow plugin settings:
Defaults: { autoplay: false, delay: 3000 } |
render | { | Custom render functions:
|
Example
import Lightbox from "yet-another-react-lightbox";
import Slideshow from "yet-another-react-lightbox/plugins/slideshow";
import "yet-another-react-lightbox/styles.css";
// ...
<Lightbox
open={open}
close={() => setOpen(false)}
slides={slides}
plugins={[Slideshow]}
/>
Live Demo
You can adjust the live demo settings below.