jQuery jCarouselLite не удается сдвинуть два изображения
-
12-12-2019 - |
Вопрос
JCarouselLite работает нормально для более чем двух изображений.
Но для ДВУХ изображений или ли JCarouselLite работает некорректно.Последнее изображение отображается снова и снова.
Есть идеи ?
HTML:
<div id="explore_slider" style="width:980px !important;height:300px;">
<ul style="width:980px;height:300px;">
<li><img src="/images/feature_bicflex4.jpg" width="980px" height="300px" /></li>
<li><img src="/images/feature_bordeauxwine.jpg" width="980px" height="300px" /></li>
</ul>
</div>
jQuery:
$(document).ready(function(){
$("#explore_slider").jCarouselLite({
speed: 1000,
auto: true
});
});
Решение
Добавить параметр visible: 1
.
$(document).ready(function(){
$("#explore_slider").jCarouselLite({
speed: 1000,
auto: true,
visible: 1
});
});
Не связан с StackOverflow