Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Animate button with zoom and bounce effect in ios

    • 0
    • 3
    • 2
    • 0
    • 1
    • 0
    • 0
    • 0
    • 3.13k
    Comment on it

    Many social apps are using bouncing effect for buttons and view. Just like Instagram and Facebook is using for LIKE.

    Here is the few lines of code. Simply just use your control (UIButton, UILabel, etc etc) instead of view down here...

    [UIView animateWithDuration:0.3/1.5 animations:^{
    view.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.1, 1.1);
    } completion:^(BOOL finished) {
        [UIView animateWithDuration:0.3/2 animations:^{
            view.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0.9, 0.9);
        } completion:^(BOOL finished) {
            [UIView animateWithDuration:0.3/2 animations:^{
                view.transform = CGAffineTransformIdentity; 
            }];
        }];
    }];

 1 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: