image 1
image 2
image 3
image 4
image 5

Create a background slideshow by using the following options:

var slideshowEl = document.querySelector('.slideshow'); Slideshow(slideshowEl, { allowSwipe: false, autoplay: true, navArrows: false, transitionTime: 800 });

Then style the slideshow to your specifications.

Example with nav arrows and indicators placed below the slideshow/carousel.

var slideshowEl = document.querySelector('.slideshow'); Slideshow(slideshowEl, { controlsBelow: true, showIndicators: true, transitionEffect: "slide" });
image 1
image 2
image 3
image 4
image 5

Users can navigate to different slides by:

  • Using the arrow navigation buttons
  • Clicking the indicator buttons on the lower right
  • Swiping the slide left or right

By default the nav arrows are not displayed below the slides but rather directly on top of the slides. The example below also showcases what happens when the loopSlides setting is set to true.

var slideshowEl = document.querySelector('.slideshow'); Slideshow(slideshowEl, { loopSlides: true, showIndicators: true, transitionEffect: "slide" });
image 1
Slide 1 caption
image 2
Slide 2 caption
image 3
Slide 3 caption
image 4
Slide 4 caption
image 5
Slide 5 caption

When showIndicators is set to true and there are enough slides that the 'dot' indicators would overflow, an input indicator will be shown instead. To navigate to a specific slide simply enter the slide number you want to view in the input field and then unfocus the field.

var slideshowEl = document.querySelector('.slideshow'); Slideshow(slideshowEl, { autoplay: true, controlsBelow: true, pauseOnUserNav: true, playButton: true, showIndicators: true, transitionEffect: "slide" });

slide-1

slide-2

slide-3

slide-4

slide-5

slide-6

slide-7

slide-8

slide-9

slide-10

slide-11

slide-12

slide-13

slide-14

slide-15

slide-16

slide-17

slide-18

slide-19

slide-20