360-Image-Slider icon indicating copy to clipboard operation
360-Image-Slider copied to clipboard

Use for anmition without loop possible?

Open junickel opened this issue 12 years ago • 5 comments

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?

junickel avatar Apr 25 '12 12:04 junickel

Hi @junickel,

Good call, I will definitely add this functionality in the next release (hopefully very soon).

Thanks!

heartcode avatar May 29 '12 15:05 heartcode

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 :)

johanna87 avatar May 31 '12 07:05 johanna87

That sounds great.

junickel avatar Jun 01 '12 11:06 junickel

Discovered someone how to do this?

alexandru-b avatar Oct 21 '13 08:10 alexandru-b

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.

EduardtAlbergII avatar Mar 04 '22 11:03 EduardtAlbergII