Skip to content

Instantly share code, notes, and snippets.

@Demoli
Created February 1, 2013 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Demoli/4692147 to your computer and use it in GitHub Desktop.
Save Demoli/4692147 to your computer and use it in GitHub Desktop.
SKYWIRE.HomeSlider = (function () {
function setup() {
$('.home-slider').anythingSlider({
theme: 'minimalist-round',
buildStartStop: false,
easing: 'easeOutSine',
animationTime: 1400,
hashTags: false,
onInitialized: function (event, slider) {
mainClass = $(event.currentTarget).attr('class').split(' ').shift();
$(slider.$wrapper).addClass(mainClass);
},
autoPlay: true,
pauseOnHover: true,
delay: 4500,
resumeDelay: 5000
});
$('.secondary-slider').anythingSlider({
theme: 'minimalist-round',
buildStartStop: false,
easing: 'easeOutSine',
animationTime: 1400,
hashTags: false,
onInitialized: function (event, slider) {
mainClass = $(event.currentTarget).attr('class').split(' ').shift();
$(slider.$wrapper).addClass(mainClass);
},
autoPlay: false,
autoPlayDelayed: true,
showMultiple: 3,
changeBy: 3,
pauseOnHover: true,
delay: 4500,
resumeDelay: 5000
});
}
return {
init: function () {
setup();
}
};
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment