Auto scroll to nearest container
I'm having a bit of a problem with a site I'm building.
I want an effect that if your in between 2 div's it will auto scroll after the mouse has been stationary for approx. 2 seconds.
An example of this effect can be found on http://www.tigihairreborn.com/en-gb/ which I think uses ScrollTo.js to create the effect.
My site uses the same layout with each div container been 1000px. I can use scrollTo.js to click a link to take me too a container, but I want it to detect if its not at the top of a div and scroll to the closest one.
Any information to point me in the correct direction would be greatfully appreciated.
Thanks in advance