O'Reilly logo

Instant Fancybox by Kyle Diedrick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Changing slideshow settings (Advanced)

Let's take a look at the settings that Fancybox exposes us to for image slideshows. We can change the speed of the slideshow, whether or not it will automatically begin playing when it is opened, whether or not it will loop, and what image should be displayed first.

Getting ready

We're going to use the same image gallery we have been using throughout the book. You can find the code for this recipe in the Changing slideshow settings folder in the code bundle.

How to do it...

  1. The first setting we are going to adjust is the speed of the slideshow. The speed can be changed by adjusting the playSpeed setting. The speed is the duration that an image will stay on the slideshow (in milliseconds). The speed can be set ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required