threesixty-slider
threesixty-slider copied to clipboard
Mouse Tracking
Hi,
I am a novice with javascript, but I was wondering how difficult it might be to modify the code so that the rotation is attached to the mouse position as in this example http://phoenix.cool/
Thanks in advance and sorry if this is an obvious answer!
Cheers, Jack
News ?
Hello there, In the src/threesixty.js on line 479 you can exchange the two variables like this:
AppConfig.pointerDistance = AppConfig.pointerStartPosX - AppConfig.pointerEndPosX;
this at least makes the slider slide in the right direction. Also you could set the speedMultiplyer to 1 so that it spins not that quick.