How can I horizontally scroll a ul by using the mouse cursor? Basically I would like to emulate the bottom section of this image gallery. I have found a javascript method online, but it is not nearly as smooth.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
And the Javascript:
http://jsfiddle.net/aarongloege/gQyz6/
You basically need to position the ul element based on the mouse position’s percentage from the left of the viewport (div in my example).