Quick Link: Make Internal Links Scroll Smoothly with JavaScript

Just wanted to bookmark this little script: Make Internal Links Scroll Smoothly with JavaScript. If a user clicks a link to an on-page anchor, it'll scroll the page instead of jumping directly to the spot.

Published December 27, 2005 · Updated September 14, 2006
Categorized as Quick Links
Short URL: https://snook.ca/s/484

Conversation

3 Comments · RSS feed
Sage said on December 27, 2005

Too bad it still doesn?t work in Safari?

Henrik said on December 28, 2005

http://cross-browser.com/x/examples/xwinscrollto.php

Henrik said on December 28, 2005

http://www.dyn-web.com/dhtml/scroll/

The first link I posted is kinda cool, since it uses dPx/dt = ksin(v) instead of dPx/dt = kv, i.e. at a varying rate.

Sorry, comments are closed for this post. If you have any further questions or comments, feel free to send them to me directly.