Skip to content

martinpilch/BounceAnimation

Repository files navigation

MMMBounceAnimation

CAAnimationGroup category to create parametrized Bounce animation. Simply add the files to your project, import CAAnimationGroup+BounceAnimation.h and use:

CAAnimationGroup *group = [CAAnimationGroup bounceAnimationGroupWithStyle:BounceAnimationStyleUp
                                                                   startCenter:button.center
                                                                          peak:10.0f
                                                                bounceDuration:0.1f
                                                                   bounceCount:5];
[button.layer addAnimation:group forKey:@"bounceAnimation"];

About

CAAnimation category to create parametrized bounce animation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published