Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you support repeatCount & autoReverses in spring animation #12

Open
binyamg opened this issue Jan 9, 2015 · 2 comments
Open

Do you support repeatCount & autoReverses in spring animation #12

binyamg opened this issue Jan 9, 2015 · 2 comments

Comments

@binyamg
Copy link

binyamg commented Jan 9, 2015

  • 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.
@matthewcheok
Copy link
Owner

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.

@binyamg
Copy link
Author

binyamg commented Jan 9, 2015

Ok. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants