Last active
March 25, 2018 13:00
-
-
Save srobbin/1978678 to your computer and use it in GitHub Desktop.
Backstretch Demo: Slideshow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Here is an example of how to use Backstretch as a slideshow. | |
* Just pass in an array of images, and optionally a duration and fade value. | |
*/ | |
// Duration is the amount of time in between slides, | |
// and fade is value that determines how quickly the next image will fade in | |
$.backstretch([ | |
"images/outside.jpg" | |
, "images/garfield-interior.jpg" | |
, "images/cheers.jpg" | |
], {duration: 3000, fade: 750}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment