Grow your CSS skills. Land your dream job.

JavaScript animated scroll down

  • # July 1, 2009 at 7:38 pm

    Hi,
    I have noticed on some peoples sites that when you click a link your browser (smoothly) scrolls down to that link! I have not yet found a simple way of doing it but have always wanted to know how it was done/how to do it!

    Anyone know of a good site or have some advice on how to do it?

    Thanks for any help you post

    Regards

    # July 2, 2009 at 12:36 pm

    This was most probably done using some javascript library, such as jQuery, Mootools or Prototype.
    Are you familiar with any of them? Cause that would certainly help..
    If not: try to look for some snippets on sites like dynamicdrive.com , they are not bound to a javascript library.

    # July 2, 2009 at 12:55 pm

    Thanks, I also do use jQuery a bit

    # July 2, 2009 at 1:12 pm

    Okay. There’s this plugin called scrollTo, it’s a jQuery plugin. See the demo and the project page for more info, I think that’s what you’re looking for.

    # July 2, 2009 at 7:27 pm

    PERFECT! That was just what I was looking for! :)
    Thanks for your help!

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".