I want to make a gallery which scrolls left and right depending on the mouse position. So you move the mouse right and the gallery scrolls left sort of thing.
Thanks,
Henry.
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.
I think this shouldn’t be too hard. If you set up a scrolling area to contain the image you can move this left and right using function animate. Then you can get the position of the mouse in relation to the div you want to scroll and caluclate how much you want it to move depending on where the mouse is. This doesn’t do what you want but is does something similar: