Created
July 1, 2014 08:05
-
-
Save tan3/436a1fcf5b2aa2e37238 to your computer and use it in GitHub Desktop.
Javascript: Slick Slider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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