Skip to content

Instantly share code, notes, and snippets.

@Gaia-Murata
Last active August 29, 2015 14:01
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 Gaia-Murata/51073cb31bf53fe9c27e to your computer and use it in GitHub Desktop.
Save Gaia-Murata/51073cb31bf53fe9c27e to your computer and use it in GitHub Desktop.
DecayAnimation.m
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