Skip to content

Instantly share code, notes, and snippets.

@srkirkland
Created February 24, 2015 08:45
Show Gist options
  • Save srkirkland/54be3bf86947399adbb1 to your computer and use it in GitHub Desktop.
Save srkirkland/54be3bf86947399adbb1 to your computer and use it in GitHub Desktop.
upvote pulse animation
var pulseAnimation = CABasicAnimation.FromKeyPath ("transform.scale");
pulseAnimation.Duration = 0.15;
pulseAnimation.To = NSNumber.FromFloat(1.5f);
pulseAnimation.TimingFunction = CAMediaTimingFunction.FromName(CAMediaTimingFunction.EaseInEaseOut);
pulseAnimation.AutoReverses = true;
pulseAnimation.RepeatCount = 2;
_upvoteView.Layer.AddAnimation (pulseAnimation, "scalepulse");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment