Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Does pop support keyframe animations? #64

Closed
rsaunders100 opened this issue May 11, 2014 · 5 comments
Closed

Does pop support keyframe animations? #64

rsaunders100 opened this issue May 11, 2014 · 5 comments

Comments

@rsaunders100
Copy link

Apologies if I have missed something obvious.

I was wondering if there was an equivalent to CAKeyframeAnimation or if its possible to do using a custom animation?

@grp
Copy link
Contributor

grp commented May 12, 2014

Pop doesn't natively support keyframe animations. Since those are usually known and setup in advance, it might be a good choice to use CAKeyframeAnimation directly.

Another two options are to use multiple Pop animations (start each one after the previous finishes, or match the beginTime to the previous animation's duration) or to implement the animation curve manually with a POPCustomAnimation.

The best option depends on what you're trying to achieve, though.

@kimon
Copy link
Contributor

kimon commented May 12, 2014

Agree with @grp. Let us know if you have something in mind that prevents using CAKeyFrameAnimation.

@kimon kimon closed this as completed May 12, 2014
@rsaunders100
Copy link
Author

I was looking at pop since it looked like it handled cancelling animation better than CoreAnimation. I have some existing keyframe animation code which can be canceled or redirected following user interaction, but the code is messy (query the presentation layer etc...) I was hoping to port over to pop to tidy things up. But its no big deal!

@RuiAAPeres
Copy link
Contributor

@rsaunders100 for the "redirected following user interaction" I have created something here. Where basically I query for the animation and change its toValue.

@warpling
Copy link
Contributor

It'd worth having POPKeyframeAnimation just to have Pop's awesome completionBlocks! :)

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

No branches or pull requests

5 participants