jQuery jCarouselLite falha ao deslizar duas imagens
-
12-12-2019 - |
Pergunta
JCarouselLite está funcionando bem para mais de duas imagens.
Mas para DUAS imagens ou li JCarouselLite não está funcionando corretamente.A última imagem é exibida repetidamente.
Alguma ideia ?
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
});
});
Solução
Adicionar parâmetro visible: 1
.
$(document).ready(function(){
$("#explore_slider").jCarouselLite({
speed: 1000,
auto: true,
visible: 1
});
});
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow