Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Dynamic Scrolling Shadows

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43766
    HugoDB
    Participant

    I’ve been playing over at CodePen trying to get scrolling shadows to work.

    This is what i’m trying to achieve.
    when the scroll bar is at default only the right shadow display. as you scroll across both display, and when you get to the end only the left shadow displays.

    I’m only just starting out with jQuery so go easy on me.

    Any help would be greatly appreciated

    This is where I’m at with it so far [http://codepen.io/hugo/pen/cvLln](http://codepen.io/hugo/pen/cvLln “Dynamic Scrolling Shadows”)

    #130136
    HugoDB
    Participant

    Ok I’ve been playing around further with this. All i need now is to detect when the scroll bar is at the end and remove the class “.shadow-middle” and add the class “.shadow-left”.

    Any ideas how I would achieve this?

    [http://codepen.io/hugo/pen/kCveF](http://codepen.io/hugo/pen/kCveF “”)

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.