Created
December 15, 2016 18:15
-
-
Save im-sad/aba39230a2992147151a06a915fc0800 to your computer and use it in GitHub Desktop.
Custom Dots for slick.js
This file contains hidden or 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
/** | |
* Slick | |
*/ | |
;(function($) { | |
$('.slick').slick({ | |
infinite: false, | |
dots: true, | |
customPaging: function(slider, i) { | |
// this example would render "tabs" with titles | |
return '<span class="dot"></span>'; | |
}, | |
slidesToShow: 1, | |
slidesToScroll: 1, | |
prevArrow: '<span class="slickArrow slickArrow--prev"></span>', | |
nextArrow: '<span class="slickArrow slickArrow--next"></span>', | |
}); | |
}(jQuery)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment