Treehouse: Grow your CSS skills. Land your dream job.

Jquery Scroll

  • # May 8, 2011 at 1:22 pm










    Hey, This is Jquery for some buttons to make some divs slide down and slide back up.

    I also want the page to scroll to those divs when those buttons are pressed, any ideas how that would work? I know jquery, but not that well.

    # May 8, 2011 at 4:08 pm

    Hmm, I think you’d do something like use .offset and .top to find the position of the div then .animate scrollTop to move the page to it. Have that bound to .click on on the relevant li tag.

    # May 8, 2011 at 6:35 pm

    I used this post as a case study blog post:

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.