Skip to content

Instantly share code, notes, and snippets.

@znsstudio
Forked from srobbin/gist:1978678
Created April 1, 2016 20:02
Show Gist options
  • Save znsstudio/0993b26e203789bfa57a02219fa30eca to your computer and use it in GitHub Desktop.
Save znsstudio/0993b26e203789bfa57a02219fa30eca 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([
"http://dl.dropbox.com/u/515046/www/outside.jpg"
, "http://dl.dropbox.com/u/515046/www/garfield-interior.jpg"
, "http://dl.dropbox.com/u/515046/www/cheers.jpg"
], {duration: 3000, fade: 750});
@znsstudio
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment