Skip to content

Instantly share code, notes, and snippets.

@srobbin
Last active March 25, 2018 13:00
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srobbin/1978678 to your computer and use it in GitHub Desktop.
Save srobbin/1978678 to your computer and use it in GitHub Desktop.
Backstretch Demo: Slideshow
/*
* 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