Adding css class to jspDrag on scroll

Posted by Jeff on Stack Overflow See other posts from Stack Overflow or by Jeff
Published on 2012-06-01T10:36:19Z Indexed on 2012/06/01 10:40 UTC
Read the original article Hit count: 231

Filed under:
|

Today I implemented the horizontal jScrollPane script and the element I intended to scrolls like a charm. Via CSS I'm using an image for the jspDrag element.

Now for my question; I see that there are a few css classes added to the jspDrag like jspHover and jspActive. Is it also possible to add css classes when I scroll to the left or right? I would like to do this, so I can change the image according to the scroll.

(Hoping my question is clear, a reaction would be highly appreciated. Kind regards)

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jscrollpane