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

Reverse animation for exit transitions? #78

Closed
alkait opened this issue Jul 4, 2015 · 4 comments
Closed

Reverse animation for exit transitions? #78

alkait opened this issue Jul 4, 2015 · 4 comments

Comments

@alkait
Copy link

alkait commented Jul 4, 2015

Is there a way to do any of the available animation in reverse? Say you want to "slideOutLeft" to do an exit animation. How to achieve this?

@MengTo
Copy link
Owner

MengTo commented Jul 5, 2015

Yes, you have to use code for that. So use animateTo() instead of animate().

Thanks! Meng

On Sat, Jul 4, 2015 at 4:26 AM, alkait notifications@github.com wrote:

Is there a way to do any of the available animation in reverse? Say you want to "slideOutLeft" to do an exit animation. How to achieve this?

Reply to this email directly or view it on GitHub:
#78

@paultan1080
Copy link

Hi,
Could you please explain when we have to use animateTo(). I want to show hide a SpringView. Show with a animation, hide with same animation but reverse, please help.

@MengTo
Copy link
Owner

MengTo commented Jul 27, 2015

Sure, here’s the code:

layer.animation = “slideLeft”

layer.animateTo()

animate() would slide right to left.

animateTo() would slide left to right.

Thanks! Meng

On Mon, Jul 27, 2015 at 4:43 PM, paultan1080 notifications@github.com
wrote:

Hi,

Could you please explain when we have to use animateTo(). I want to show hide a SpringView. Show with a animation, hide with same animation but reverse, please help.

Reply to this email directly or view it on GitHub:
#78 (comment)

@paultan1080
Copy link

Ah Thanks, works like charm!

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

4 participants