Last active
August 29, 2015 14:01
-
-
Save Gaia-Murata/51073cb31bf53fe9c27e to your computer and use it in GitHub Desktop.
DecayAnimation.m
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
POPDecayAnimation *animX = | |
[POPDecayAnimation animationWithPropertyNamed:kPOPLayerPositionX]; | |
animX.velocity = @(100.0f); | |
[_decaySampleView.layer pop_addAnimation:animX forKey:@"slideX"]; | |
POPDecayAnimation *animY = | |
[POPDecayAnimation animationWithPropertyNamed:kPOPLayerPositionY]; | |
animY.velocity = @(100.0f); | |
[_decaySampleView.layer pop_addAnimation:animY forKey:@"slideY"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment