简体   繁体   中英

How can I pause, resume or control the speed of facebook-pop animation?

Before using facebook-pop, I have used core animation. So I can pause, resume or control the speed of animation by changing the speed of the CALayer.

Now I have used facebook-pop in some situation and found it very powerful. I want to use facebook-pop to replace my legacy animation code. But when I changed the layer speed to 0, the animation won't pause.

Please tell me how can I pause, resume or control the speed of facebook-pop animation? I have googled a lot but couldn't found any hint.

Edit 1: Maybe I can remove old animation to implement pausing, add new animation to implement resuming and update duration to implement changing speed. At this point, pop is not as convenient as core animation.

POPAnimation has a paused property that will pause an animation.

In terms of speed it depends on the animation. POPSpringAnimation has a speed property, as you note for other types you can change the duration .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM