I am trying to load UICollectionView cells so that sections in UICollectionView are loaded one by one with an animation that moves from right to left. After it shifts from right to left, I want it to bounce / shake, and then in the second section it slides and reflects with the same effect. I can glide over sections, but as soon as he enters from right to left, I cannot make him bounce / shake a little. Below is my code I'm trying:
[UIView animateWithDuration:0.2 delay:0 options:UIViewAnimationOptionCurveEaseOut animations:^{
attributes.transform3D = CATransform3DMakeTranslation(self.collectionView.bounds.size.width, 0, 0);
} completion:^(BOOL finished){
attributes.transform = CGAffineTransformMakeTranslation(0, -120);
}];
source
share