Skip to content

Instantly share code, notes, and snippets.

@zogreptile
Created March 26, 2018 01:19
Show Gist options
  • Save zogreptile/63fd6cf9b1e74fe7428279669374da83 to your computer and use it in GitHub Desktop.
Save zogreptile/63fd6cf9b1e74fe7428279669374da83 to your computer and use it in GitHub Desktop.
$('#slider')
.on('init', function () {
$(this).removeClass('slider--before-init');
})
.slick({
arrows: false,
autoplay: true,
autoplaySpeed: 5000,
infinite: true,
speed: 300,
slidesToShow: 5,
responsive: [
{
breakpoint: 720,
settings: {
slidesToShow: 4,
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 3,
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 2,
}
}
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment