Skip to content

Commit

Permalink
Increased animation time
Browse files Browse the repository at this point in the history
Previous values gave a very abrupt appearance.
  • Loading branch information
alskipp committed Apr 19, 2014
1 parent 15a8837 commit b443144
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ASProgressPopupView/ASPopupView.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ - (void)show
[scaleAnim setTimingFunction:[CAMediaTimingFunction functionWithControlPoints:0.8 :2.5 :0.35 :0.5]];
scaleAnim.removedOnCompletion = NO;
scaleAnim.fillMode = kCAFillModeForwards;
scaleAnim.duration = 0.4;
scaleAnim.duration = 0.8;
[self.layer addAnimation:scaleAnim forKey:@"transform"];

CABasicAnimation* fadeInAnim = [CABasicAnimation animationWithKeyPath:@"opacity"];
Expand All @@ -178,7 +178,7 @@ - (void)hide
CABasicAnimation *scaleAnim = [CABasicAnimation animationWithKeyPath:@"transform"];
scaleAnim.fromValue = [self.layer.presentationLayer valueForKey:@"transform"];
scaleAnim.toValue = [NSValue valueWithCATransform3D:CATransform3DMakeScale(0.5, 0.5, 1)];
scaleAnim.duration = 0.6;
scaleAnim.duration = 0.9;
scaleAnim.removedOnCompletion = NO;
scaleAnim.fillMode = kCAFillModeForwards;
[scaleAnim setTimingFunction:[CAMediaTimingFunction functionWithControlPoints:0.1 :-2 :0.3 :3]];
Expand All @@ -187,7 +187,7 @@ - (void)hide
CABasicAnimation* fadeOutAnim = [CABasicAnimation animationWithKeyPath:@"opacity"];
fadeOutAnim.fromValue = [self.layer.presentationLayer valueForKey:@"opacity"];
fadeOutAnim.toValue = @0.0;
fadeOutAnim.duration = 0.8;
fadeOutAnim.duration = 1.0;
[self.layer addAnimation:fadeOutAnim forKey:@"opacity"];
self.layer.opacity = 0.0;
} [CATransaction commit];
Expand Down

0 comments on commit b443144

Please sign in to comment.