Skip to content

Instantly share code, notes, and snippets.

@tan3
Created July 1, 2014 08:05
Show Gist options
  • Save tan3/436a1fcf5b2aa2e37238 to your computer and use it in GitHub Desktop.
Save tan3/436a1fcf5b2aa2e37238 to your computer and use it in GitHub Desktop.
Javascript: Slick Slider
// wait so that interchange can change the images
setTimeout(function(){
$('#slick').slick({
autoplay: true,
pauseOnHover: true,
speed: 400,
autoplaySpeed: 5000,
touchThreshold: 7,
dots: true,
onAfterChange: function(el, i) {
notes.removeClass('on')
notes.eq(i).addClass('on')
}
}).slickGoTo(start)
}, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment