37 lines
1.0 KiB
JavaScript
37 lines
1.0 KiB
JavaScript
|
|
jQuery(function($){
|
||
|
|
$('.product-slider').slick({
|
||
|
|
slidesToShow: 4,
|
||
|
|
slidesToScroll: 1,
|
||
|
|
infinite: true,
|
||
|
|
arrows: true,
|
||
|
|
dots: false,
|
||
|
|
draggable: false,
|
||
|
|
swipe: false,
|
||
|
|
autoplay: true,
|
||
|
|
autoplaySpeed: 4000,
|
||
|
|
touchMove: false,
|
||
|
|
prevArrow: '<button type="button" class="slick-prev slider-arrow"><span class="screen-reader-text">Poprzedni</span></button>',
|
||
|
|
nextArrow: '<button type="button" class="slick-next slider-arrow"><span class="screen-reader-text">Następny</span></button>',
|
||
|
|
responsive: [
|
||
|
|
{ breakpoint: 1300, settings: { slidesToShow: 3 } },
|
||
|
|
{ breakpoint: 950, settings: { slidesToShow: 2 } },
|
||
|
|
{ breakpoint: 620, settings: { slidesToShow: 1 } }
|
||
|
|
]
|
||
|
|
});
|
||
|
|
|
||
|
|
$('.hero-uv__slider').slick({
|
||
|
|
slidesToShow: 1,
|
||
|
|
slidesToScroll: 1,
|
||
|
|
infinite: true,
|
||
|
|
arrows: false,
|
||
|
|
draggable: false,
|
||
|
|
swipe: false,
|
||
|
|
touchMove: false,
|
||
|
|
dots: true,
|
||
|
|
autoplay: true,
|
||
|
|
autoplaySpeed: 4000,
|
||
|
|
adaptiveHeight: true,
|
||
|
|
appendDots: $('.hero-uv__slider'),
|
||
|
|
});
|
||
|
|
});
|