Skip to content

Instantly share code, notes, and snippets.

@jessegavin
Created February 28, 2011 17:08
Show Gist options
  • Save jessegavin/847637 to your computer and use it in GitHub Desktop.
Save jessegavin/847637 to your computer and use it in GitHub Desktop.
Spacecrafting slideshow usage
var ss = $("#slideshow-display").slideshow({
urls: ['image.jpg', 'image2.jpg'], // This is the only required setting
photoBaseUrl: "http://photos.screenfeed.com/',
interval: 3000, // Number of milliseconds each photo should be shown
transitionDuration: 300, // Time it takes for fade animation to complete
preloadBuffer: 3, // Number of images to preload before slideshow starts
onImageChanging: null, // If specified, this is fired right before the image is swapped
onImageLoading: null, // If specified, this is fired when an image is requested.
onImageLoadComplete: null, // If specified, this is fired when an image has loaded
transition: "fade"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment