Skip to content

Instantly share code, notes, and snippets.

@rounak
Last active August 29, 2015 14:00
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 rounak/11383753 to your computer and use it in GitHub Desktop.
Save rounak/11383753 to your computer and use it in GitHub Desktop.
POPSpringAnimation *springAnimation = [POPSpringAnimation animation];
springAnimation.property = [POPAnimatableProperty propertyWithName:kPOPViewCenter];
springAnimation.toValue = [NSValue valueWithCGPoint:CGPointMake(self.view.bounds.size.width/2, self.view.bounds.size.height/2)];
springAnimation.velocity = [NSValue valueWithCGPoint:CGPointMake(100, 10)];
[imageView pop_addAnimation:springAnimation forKey:@"center"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment