Skip to content

Instantly share code, notes, and snippets.

@evoL
Created March 13, 2014 18:50
Show Gist options
  • Select an option

  • Save evoL/9534428 to your computer and use it in GitHub Desktop.

Select an option

Save evoL/9534428 to your computer and use it in GitHub Desktop.
CABasicAnimation *animation = [CABasicAnimation animation];
animation.toValue = [NSValue valueWithCATransform3D:CATransform3DIdentity];
animation.duration = 0.66f;
animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut];
[contentViewLayer addAnimation:animation forKey:@"transform"];
contentViewLayer.transform = CATransform3DIdentity;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment