-
Notifications
You must be signed in to change notification settings - Fork 79
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
Stop on point #2
Comments
i don't think is easy. u'll have to create a separate path :s as far as I know. unless jQuery has some new functionality to abort animations. |
Well, there is the step function of the method. I've been playing around with it. Although, I haven't exactly figure it out. I think it has the potential to function this way. However, when applying it to your plugin, the step function does not seem to return any values. What do you mean create a separate path? |
Bah.. I didn't mean to hit Comment and Close... |
could u use stop (http://api.jquery.com/stop/) within the step function perhaps ? |
Well, I haven't quite figured out how to call stop() from within the step function if you even can, but you can do some neat things with it. I have some code, but I don't know how to post it in there. On the other hand, I can't get the step function to work while using your Path plugin. Perhaps I'm missing something? |
Ok, just figured out how to call stop() from step, but it doesn't work with your Paths plugin. The same data isn't being accessed when being pushed through Paths. |
Check it out.. to Could change the code to accept a param there maybe. |
Alright, so I'm still hacking away at this. I brought the divisor in as a param, not sure that's the way to go though. Playing around with some loops now to see if I can make the divisor work... |
try var css = fx.end.css(1 - fx.pos*param) where param is between 0 and 1 |
I was able to get an animation to stop at an arbitrary point along the curve by using step and stop()
|
I'm trying to stop an object on a point or percentage of the length of a path. I was wondering if there is a feedback loop for object's current position or simpler way to do this using your plugin.
The text was updated successfully, but these errors were encountered: