-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
An updateTo() method (feature request?) #257
Comments
Yeah, the library isn't designed to do this currently, but I think it's a good idea. I think instead of an In the meantime, you can hack it by doing your own interpolation inside the
|
|
First of all, thanks for that article. That was a good read. I don't think that, according to Hidayat, the Its functionality not ambiguous or unintuitive. It sets the "dynamic" property of the tween, putting it in "dynamic mode". According to his other article, setters that start with "set" and that are not double negatives are fine. The method will have no side effects besides setting the "dynamic" property. It will be a pure setter method, with only one argument. "dynamic" should be considered a property of the tween. I'm not sure how the tween would behave if you called Let me know what you think! |
@adrienbrunet what did you think? |
Well, I'm not sure what the best option is. I proposed updateTo() because I saw it in use in another library about tweening things and it makes sens. Meanwhile, @mikebolt seems right. I think how we implement is more on the maintainer side than mine (it's been quite some time since I opened this issue, I'm not using it so often now). I just think being able to do it would be a good feature. =) |
Hi @adrienbrunet, a bit late but I basically made a library exactly for this. It only supports CubicInOut, but it's super smooth: |
Hi, I'd like to use tween.js for animation (and this library is awesome).
I need it to go from objectA to objectB. ObjectB is also constantly moving (including DURING the animation). I need to update the .to() position. Can we do that with the actual structure? I haven't found any issue or docs related to this problem.
Do we need a fonction let's say called "updateTo()" to do that? Cheers
The text was updated successfully, but these errors were encountered: