miss chohoh
miss chohoh

Reputation: 25

jquery vertical scroll

Now, I'm trying to create a vertical scroll. http://www.chohoh.com/pcs/test.scroll.html

I have quite a few things nested which needs to remain like that but I think I'm unclear on how to tell the jquery file that it needs to scroll between two li classes "white-tikt" and "tan-tikt".

I'm completely baffled why this isn't working. Even if someone can just get me thinking in a different way, I keep trying the same things over and over.

Looking for any resolution, help, tip or advice. thanks!

Upvotes: 1

Views: 10607

Answers (2)

corysimmons
corysimmons

Reputation: 7675

Div box needs to be overflow:hidden, then you can use localScroll to scroll between elements.

Try to make your own simple example with some code like:

$.localScroll();

Does this help any or am I out of my league?

Upvotes: 1

SeanJA
SeanJA

Reputation: 10354

Try the scroll to plugin http://plugins.jquery.com/project/ScrollTo

You could also try something using the animate functionality:

$('#current-div').animate({width: '0px'});
$('#next-div').animate({width: '300px'});

Upvotes: 0

Related Questions