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 could I chain animation from different code block? #9

Closed
iaomw opened this issue Jul 31, 2015 · 4 comments
Closed

How could I chain animation from different code block? #9

iaomw opened this issue Jul 31, 2015 · 4 comments

Comments

@iaomw
Copy link

iaomw commented Jul 31, 2015

I need chain the animation from different code block while I have a var of chain. But it didn't work after the chain finished, how could I do it?

var animationChain:EAAnimationDelayed = UIView.animateAndChainWithDuration...

func someFunction() {

    self.animationChain.animateWithDuration...
}

func anotherFunction() {

    self.animationChain.animateWithDuration...
}
@icanzilb
Copy link
Owner

Not sure what exactly are you trying to do but here's how you create animation chains:
https://github.com/icanzilb/EasyAnimation#chain-animations

@iaomw
Copy link
Author

iaomw commented Jul 31, 2015

Thanks, I have read that, and that's the main reason for me to try. The chain looks awesome.

I consider it as something like serial dispatch_queue, it will auto start queue job after the previous job done. I will chain animations dynamically from different places, I really need a chain like that.

If I chain them in the same place, it works. But while I am add animations to it after the previous chained animations finished, It will never start again. The chain looks dead and not reusable once finished.

If I miss used it, please let me know :)

@icanzilb
Copy link
Owner

icanzilb commented Aug 4, 2015

I'm not sure if you could use the API in this way ... at least I never intended to have it working like that :) But I'll give it a try when I have a bit of time and see what happens

@iaomw
Copy link
Author

iaomw commented Aug 5, 2015

Thanks, happy to hear your plan, that would be awesome.

@icanzilb icanzilb closed this as completed Oct 8, 2015
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

2 participants