I follow THIS , and get this animation with this code:
func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) { cell.layer.transform = CATransform3DMakeScale(0.1,0.1,1) UIView.animateWithDuration(0.25, animations: { cell.layer.transform = CATransform3DMakeScale(1,1,1) }) }
But I want to update something in this cell animation, for example, when I scroll in the tableView, the cell is small, like (0.1,0.1,1) at the beginning, and after that it scales as (1,1,1) , but I I want to apply it as an effect like a bubble at the initial stage, it is small, but in the original scale it is (1,1,1) , and the other scaled and reappears in the original scale, for example (1,1,1) .
please call me, how can I achieve this animation?
EDIT:
I tried this, but it was not so smooth and not exact what I want.
func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) { cell.layer.transform = CATransform3DMakeScale(0.1,0.1,1) UIView.animateWithDuration(0.3, animations: { cell.layer.transform = CATransform3DMakeScale(1,1,1) }) UIView.animateWithDuration(1, animations: { cell.layer.transform = CATransform3DMakeScale(2,2,2) }) UIView.animateWithDuration(0.3, animations: { cell.layer.transform = CATransform3DMakeScale(1,1,1) }) }