Created
January 29, 2020 14:22
-
-
Save nanna-dk/c17798c265d1b1423c97201ad2aa7c6f to your computer and use it in GitHub Desktop.
Multiple slick sliders
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
$(function () { | |
var $slideshow = $(".carousel"); | |
$slideshow.each(function () { | |
if ($(this).is(".type-one-carousel")) { | |
$(this).slick({ | |
dots: true, | |
infinite: true, | |
slidesToShow: 2 | |
}); | |
} else if ($(this).is(".type-two-carousel")) { | |
$(this).slick({ | |
dots: true, | |
infinite: true, | |
slidesToShow: 6 | |
}); | |
} else { | |
$(this).slick(); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment