When user clicked on the next image, I want the next image will take the place of current image in the carousal. Is there a way to do this?
My configuration for the jCarouselLite is as follows:
var carousalConfig = {
btnNext: '.corousal-nav .right-arrow',
btnPrev: '.corousal-nav .left-arrow',
btnGo:[],
vertical: false,
visible: 2,
start: 0,
afterEnd: function(a) {
a.next().css({opacity:.35});
a.prev().css({opacity:1});
}
$('.carousal-coontainer').jCarouselLite(carousalConfig);
html for the same
<div class="carousal-coontainer">
<ul>
<li><img src="image/1.jpg"></li>
<li><img src="image/2.jpg"></li>
<li><img src="image/3.jpg"></li>
</ul>
</div>
<div>
<div class="carousal_left_arrow"> <span class="left-arrow"> </span></div>
<div class="carousal_right_arrow"> <span class="right-arrow"></span> </div>
</div>