Reputation: 5343
I have the following code to scroll images in vertical direction (uses jCarouselLite)
Code:
$('#image').jCarouselLite({
speed: 1000,
visible: 1,
circular: true,
auto: 5000,
scroll: 1,
vertical: true
});
Needs:
This code allows the image to scroll bottom to top direction. I want to scroll image in reverse direction.[Top to Bottom]
Geetha.
Upvotes: 0
Views: 3062
Reputation: 11
answered here How to make JCarousel Vertical Scroller reverse scroll? by matt ryan
$('#carousel').jcarousel({
vertical: true,
scroll: -1,
});
Upvotes: 1
Reputation: 1035
If this is the only thing you are using jCarousel Lite for or more specifically the auto scroll feature you can simply update the auto extension the following code
starting at line 274 of jcarousellite_1.0.1.js
if(o.auto)
setInterval(function() {
go(curr+o.scroll);
}, o.auto+o.speed);
with
if(o.auto)
setInterval(function() {
go(curr-o.scroll);
}, o.auto+o.speed);
This is the quick and dirty way, i personally would take the time to write my own 'autoReverse' extension to not loose any existing functionality.
Upvotes: 1