jscrollpane - jquery scrollpane and scrollTo at same time -


The current demo here:

I have a tabs system working greatly, I get it I'm trying to, if you are in a way below the gallery and then click on the "Presence" or any menu item, you are scrolled back to 0,0.

The current sliding code is as follows:

  $ ('# wrapper ul li'). Click the button to open it. (Function () {$ (window) .scrollTo ($ (this) .next ('li'), 500, {offset: {top: 0, left: -50}}, {easy: 'easy option' }}}};  

And I'm trying to add something like this under:

  $ ('# menu li'). Click (function () ($ (window) .scrollTo (0,0, 500, {offset: {top: 0, left: -50}}, {ease: 'easily otxpo'})}}  

This tab continues to switch, but it will not scroll back in the beginning!

click event li Do not delegate to elements You must target a (anchor) elements instead. Here goes:

  $ ('# menu li) A '). Click (function ($ {. (Scrolling) (),.  

Comments