View Single Post
Old 10-26-2012, 09:06 AM   PM User | #1
patchgill
New to the CF scene

 
Join Date: Sep 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
patchgill is an unknown quantity at this point
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
J
patchgill is offline   Reply With Quote