Last active
December 18, 2015 06:59
-
-
Save DaGaMs/5743272 to your computer and use it in GitHub Desktop.
Shutter Iris open animation
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
[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