【发布时间】:2016-11-26 00:40:04
【问题描述】:
我有一个活动站点,一页上有 3 个光滑的滑块,通常光滑的滑块不会初始化,而是我只看到所有的图像,有时如果我刷新它们都会开始工作。
https://au.hairandme.com.au/collections/all/products/hair-rejuvenation-treatment
是有问题的页面。
( function($) {
$.noConflict();
$(document).ready(function() {
$('.HEROSLIDE').slick({
autoplay: true,
autoplaySpeed: 2000,
pauseOnFocus: false,
});
$('.HEROSLIDEMOBILE').slick({
autoplay: true,
autoplaySpeed: 2000,
pauseOnFocus: false,
});
$('.benefits-slider').slick({
centerMode: true,
centerPadding: '60px',
slidesToShow: 3,
responsive: [
{
breakpoint: 1024,
settings: {
arrows: true,
centerMode: true,
centerPadding: '40px',
slidesToShow: 3
}
},
{
breakpoint: 768,
settings: {
arrows: true,
centerMode: true,
centerPadding: '40px',
slidesToShow: 2
}
},
{
breakpoint: 480,
settings: {
arrows: true,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
}
]
});
$('.accordion').accordion({
defaultOpen: '',
cookieName: 'accordion_nav'
});
});
} ) ( jQuery );
【问题讨论】:
-
2 年后仍然发生......
-
这个 Slick Slider 在过去几年里给我带来了很多问题。我很欣赏它是免费的,而且有人支持它,但它让我失望了太多次,所以我正在改变它以换取其他东西。