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

how to destory an animation? #1273

Open
webstermobile opened this issue Jun 8, 2022 · 5 comments
Open

how to destory an animation? #1273

webstermobile opened this issue Jun 8, 2022 · 5 comments

Comments

@webstermobile
Copy link

webstermobile commented Jun 8, 2022

I made a scale animation test , you can visit https://codepen.io/echolove38/pen/oNEPKVE
when I click 'start' button, the rect scale from 20% to 80%,
when I click 'restore' button, restore the rect scale to 1,
but when I click 'start' again , the rect become smaller than before,
.....
...
loop the operates, the rect become more and more small.

so, why the animation still depends on last's result.
how to destory the last animation and start a new scale animation.

@webstermobile
Copy link
Author

is there anyone could help

@xiaoxiaohuayu
Copy link

is there anyone could help

Hello, have you solved this problem? I also had the same problem,This is causing me a lot of pain

@echolove38
Copy link

@xiaoxiaohuayu have not

@oliverschenk
Copy link

I have a similar question. I have an animation that uses loop() and runs forever. I don't know what the proper way is to stop and destroy the animation? I found a few functions like timeline().stop() or runner.unschedule(), but I have no idea if that is the right way to stop/cancel an animation...

@kirkbushell
Copy link

kirkbushell commented Sep 19, 2023

I have a similar issue - i scale 200%, works fine, but if I mouseout, it doesn't scale down back to 100% (1). In fact, mouseout doesn't seem to work at all..

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

No branches or pull requests

5 participants