POP-MCAnimate icon indicating copy to clipboard operation
POP-MCAnimate copied to clipboard

Do you support repeatCount & autoReverses in spring animation

Open binyamg opened this issue 10 years ago • 2 comments

  • Hi,

I am trying to make a cell shake. So I want to move it and reverse that and repeat the process:

cell.layer.springSpeed = 15;
cell.layer.springBounciness = 15;
cell.layer.autoreverses = YES;
cell.layer.repeatCount = 5;
cell.layer.spring.pop_positionY = cell.layer.position.y - 150;
  • This doesn't seem to work.

binyamg avatar Jan 09 '15 03:01 binyamg

I don't think autoreverses and repeatCount properties are directly available on CALayer. You might want to fall back to the standard POP syntax for this edge case.

matthewcheok avatar Jan 09 '15 03:01 matthewcheok

Ok. Thanks.

binyamg avatar Jan 09 '15 03:01 binyamg