Created
May 23, 2016 03:04
-
-
Save fhefh2015/1ca1cd745747dea2ea641caaf5d609e5 to your computer and use it in GitHub Desktop.
CABasicAnimation动画
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)animationBaseTest { | |
CABasicAnimation *baseAnimate = [CABasicAnimation animationWithKeyPath:@"transform.scale"]; | |
baseAnimate.toValue = @(0); | |
baseAnimate.duration = 0.8; | |
baseAnimate.repeatCount = MAXFLOAT; | |
baseAnimate.autoreverses = YES; | |
[self.heart.layer addAnimation:baseAnimate forKey:@"scaleAnimate"]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment