Up
Home
Twit
Down
Close Panel

17

Nov

2009

Smooth Scroll Using Mootools1.2

By Jamin. Posted in Mootools | No Comments »

Here is something that every blog should have. Whether its a really long blog or you just like to show twenty post on your home page, using the scroll bar sucks.Anyway here is the good stuff.

What you will need…

  • Mootools (Use mine.)
  • Text Editor (Notepad works just fine.)
  • The HTML

    <div id="top"></div>   //the div to be scrolled to.
    
    <a href="#top">To The Top!</a>   //the link to get you there
    

    Pretty simple the href inside the anchor tag depicts the <div> on the page the link will scroll to all you have to do is add this tag “#” in front of it. In this situation when the link is clicked we will be scrolled to the <div> with the id=”top” tag…

    Read more »

    Technorati: Mootools, scroll, smooth