Skip to content

Instantly share code, notes, and snippets.

@gonzedge
Created November 30, 2011 15:20
Show Gist options
  • Save gonzedge/1409440 to your computer and use it in GitHub Desktop.
Save gonzedge/1409440 to your computer and use it in GitHub Desktop.
Extending the jQuery Rambling Slider
$(window).load(function(){
$('#slider').ramblingSlider({
imageTransitions: {
/* Add a 'fadeInSlices' transition */
fadeInSlices: function() {
/* ... */
},
/* Override the 'sliceUpRight' transition */
sliceUpRight: function() {
/* ... */
}
/* ... */
},
flashTransitions: {
/* Same format */
},
imageFlashTransitions: {
/* Same format */
}
});
});
imageTransitions: {
fadeInSlices: function() {
this.animateSlices(function(){
this.css('opacity', '0');
return {opacity: '1'};
},
function() {
return this.reverse();
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment