Skip to content

Instantly share code, notes, and snippets.

@DaGaMs
Last active December 18, 2015 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DaGaMs/5743272 to your computer and use it in GitHub Desktop.
Save DaGaMs/5743272 to your computer and use it in GitHub Desktop.
Shutter Iris open animation
[CATransaction begin];
CATransition *animation = [CATransition animation];
animation.delegate = self;
animation.duration = .3;
animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
animation.removedOnCompletion = NO;
animation.fillMode = kCAFillModeForwards;
animation.type = @"cameraIrisHollowClose";
[self.view.window.layer addAnimation:animation forKey:@"shutterCloseAnimation"];
[CATransaction commit];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment