views:

303

answers:

2

For these page numbers below: 1 2 3 4 5 6

When 6 is clicked,7 should come out from right side,and 1 should hide into left,so on.

How to create such kind of effect with jQuery?

+1  A: 

Check out Karmic Flow

gjohnson
No,its menus are fixed,but I need new menu items to come out on the fly.
Shore
+2  A: 

Hmm... jQuery TOOLS Scrollable looks nice. It has Demo for adding/removing items dynamically.

I don't think it's so complicated to modify that example to suit your needs, btw. Just change the append in addItem to load your next item via AJAX (that's what you want, right?) and bind it to the last item (you can get it easily via its API). And removeItem... I don't even think you need it.

Maybe some other tweaks would be needed - but it still seems easier than rolling your own.

Eli Krupitsky