$(function() {
let css_slider_options = {
'css_4': {
dots: false,
infinite: true,
autoplay:false,
variableWidth:false,
speed: 300,
mobileFirst: true,
slidesToShow: 1,
slidesToScroll: 1,
rows: 0,
arrows: false,
mobileFirst: true,
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 3,
slidesToScroll: 3
}
},
{
breakpoint: 992,
settings: {
slidesToShow:3,
arrows: true,
slidesToScroll: 3
}
},
{
breakpoint: 1300,
settings: {
slidesToShow:4,
arrows: true,
slidesToScroll: 4
}
}
]
},
'css_3': {
dots: false,
variableWidth:false,
infinite: true,
autoplay:false,
speed: 300,
mobileFirst: true,
slidesToShow: 1,
slidesToScroll: 1,
rows: 0,
arrows: false,
mobileFirst: true,
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
},
{
breakpoint: 1100,
settings: {
slidesToShow:2,
arrows: true,
slidesToScroll: 1
}
},
{
breakpoint: 1300,
settings: {
slidesToShow:3,
arrows: true,
slidesToScroll: 2
}
}
]
},
'weitere_marken': {
dots: false,
variableWidth:false,
infinite: true,
autoplay:false,
speed: 300,
mobileFirst: true,
slidesToShow: 1,
slidesToScroll: 1,
rows: 0,
arrows: false,
mobileFirst: true,
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
},
{
breakpoint: 1100,
settings: {
slidesToShow:2,
arrows: true,
slidesToScroll: 1
}
},
{
breakpoint: 1300,
settings: {
slidesToShow:3,
arrows: true,
slidesToScroll: 2
}
}
]
},
'css_reviews_content': {
dots: true,
variableWidth:false,
infinite: true,
autoplay: false,
speed: 300,
mobileFirst: true,
slidesToShow: 1,
slidesToScroll: 1,
rows: 0,
arrows: false,
asNavFor: '.css_reviews_image-slider'
},
'css_reviews_image': {
dots: false,
fade:false,
speed:1000,
variableWidth:false,
infinite: true,
autoplay: false,
speed: 300,
slidesToShow: 1,
slidesToScroll: 1,
rows: 0,
arrows: false,
asNavFor: '.css_reviews_content-slider'
}
};
$('.css-product-slider').each(function() {
$(this).slick(css_slider_options[$(this).data("slick-type")]);
});
});