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

Zoom out from a Point animation. #44

Closed
hammad opened this issue Dec 21, 2015 · 2 comments
Closed

Zoom out from a Point animation. #44

hammad opened this issue Dec 21, 2015 · 2 comments

Comments

@hammad
Copy link

hammad commented Dec 21, 2015

Basically i am trying write an animation where the presented controller expends from a fixed x,y point. something like: https://dl.dropboxusercontent.com/u/21062535/animation.mov Also when dismissed the presented controller should shrink back into that x,y position.

@Haidery
Copy link

Haidery commented Dec 21, 2015

HI @hammad . Check out this PR #45. This how you can use it.

    RZZoomFromPointAnimationController *animation = [[RZZoomFromPointAnimationController alloc] init];
    animation.origin= CGPointMake(1, 1);
    animation.color= [UIColor redColor];


    [[RZTransitionsManager shared] setAnimationController:animation
                                       fromViewController:[self class]
                                                forAction:RZTransitionAction_PresentDismiss];

values of origin are 0-1 instead of fixed x,y.

@hammad
Copy link
Author

hammad commented Dec 28, 2015

@Haidery Ok it worked flawlessly!!

@hammad hammad closed this as completed Dec 28, 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