Pop框架动画 - kPOPLayerPositionX和kPOPLayerPositionY的组合

时间:2017-03-02 07:38:25

标签: ios animation

点击错误答案后,我在X方向上摇动单元格(类似于macbook上错误的密码动画)。

POPSpringAnimation *sprintAnimation = [POPSpringAnimation animationWithPropertyNamed:kPOPLayerPositionX];
sprintAnimation.springBounciness = 20;
sprintAnimation.velocity = @400;
sprintAnimation.repeatCount = 3;
[self pop_addAnimation:sprintAnimation forKey:@"springAnimation"];

但是,我想要像enter image description here这样的动画  倾斜保持物体的中心不变。哪个属性可以帮助我?

0 个答案:

没有答案