A Client wanted me to create an e-Learning Website, and one of the feature of the website is Quiz. I figured that a horizontal scrolling animation will adds a wonderful user-experience to the quiz, and it looks nice as a presentation as well!
Christophe Verbinnen created a wonderful function to do the scrolling here : http://djpate.com/2009/10/07/animated-scroll-to-anchorid-function-with-jquery/ . But unfortunately, that function couldn’t handle horizontal scrolling so I modified it a little.
The Jquery Function to do the effect :
To call it, use:
An example of calling the function with a link :
<a onclick="goToByScroll('wrap1')" href="#">Slide 1</a>
*About The Author: Yohanes Steven is a Web Designer with a passion in coffee. He survived cancer in December 2010 and have intended to inspire the world ever since