Smooth scrolling for anchor links
This link it pretty cool. It provides some javascript code so that when you click on an anchor link on a page, it smoothly scrolls down (or up) to the anchor. Seeing it in action, it's cooler than I thought it'd be.
| Link: | www.stevecochrane.com...Search for more tips related to this link |
| Rating: | 100% positive, 2 total Votes |
| Categories: | web 2.0 web design javascript HTML coding |
| Added: | on Mar 11, 2007 at 9:24 am |
| Added By: | Marcos84 |
| Searches: | javascript web link html design |


One note on implementation of this... it assumes that you are anchoring to named <a> tags. This was not the case for us; we use arbitrary tags with IDs. We hacked the code to work in this manner, but it seems that a more general approach that works on either would be better.