Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use for anmition without loop possible? #2

Open
junickel opened this issue Apr 25, 2012 · 5 comments
Open

Use for anmition without loop possible? #2

junickel opened this issue Apr 25, 2012 · 5 comments
Assignees

Comments

@junickel
Copy link

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?

@ghost ghost assigned heartcode May 29, 2012
@heartcode
Copy link
Owner

Hi @junickel,

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

Thanks!

@johanna87
Copy link

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

@junickel
Copy link
Author

junickel commented Jun 1, 2012

That sounds great.

@alexandru-b
Copy link

Discovered someone how to do this?

@EduardtAlbergII
Copy link

EduardtAlbergII commented Mar 4, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants