360-Image-Slider
360-Image-Slider copied to clipboard
Use for anmition without loop possible?
Is it possibble to prevent the loop to use the script for animation? So you have to swipe forward and backward without any loop, but a swipe which ends at the endFrame or startFrame. How to change the Source?
Hi @junickel,
Good call, I will definitely add this functionality in the next release (hopefully very soon).
Thanks!
I would also love that, I'm trying to figure out how to do this for my current project. I hope you could add it very soon :)
That sounds great.
Discovered someone how to do this?
YES, you need to add this in the threesixty.js file:
After Line 35:
min_endframe = 0, max_endframe = 90,
After Line 341 (endFrame = currentFrame + Math.ceil((totalFrames - 1) * speedMultiplier * (pointerDistance / $container.width()));)
if (endFrame < min_endframe) { endFrame = min_endframe; } else if (endFrame > max_endframe) { endFrame = max_endframe; }
i added it in my fork of the repo, so you can download it and define your min and endframe to deactivate the loop.