Created
July 5, 2020 09:04
-
-
Save ColtMoney/17b55ba2fb2bf7aa73c9d4cf6c93d57c to your computer and use it in GitHub Desktop.
Initialize slick on media
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
if (window.matchMedia("(max-width: 576px)").matches) { | |
$(".teams").slick({ | |
infinite: true, | |
slidesToScroll: 1, | |
arrows: false, | |
dots: true, | |
slidesToShow: 1, | |
centerMode: true, | |
customPaging: function (slider, i) { | |
return '<div class="slick_custom_dot"></div>'; | |
}, | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment