Created
January 11, 2017 11:28
-
-
Save rexrony/a6f3c4bfa5d550eb1a190fb39008ad4d 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