title: TableViewCell animation in swift
body: <p>I am following <a href="http://jamesonquave.com/blog/developing-ios-8-apps-using-swift-animations-audio-and-custom-table-view-cells/" rel="noreferrer">THIS</a> tutorial and achieve that animation with this code:</p>
  
  <pre><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)
      })
  
  }
  </code></pre>
  
  <p>But I want to update something in this cell animation like when I scrolling into tableView the cell is small like <code>(0.1,0.1,1)</code> at the start and after that It scales like <code>(1,1,1)</code> but I want to apply like bubble type effect like it is small at start after that it comes at its original Scale like <code>(1,1,1)</code> and one it is zoom and again it comes into its original scale like <code>(1,1,1)</code>.</p>
  
  <p>please guide me how can I achieve that animation?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I tried this but its not that kind of smooth and not exact what I want.</p>
  
  <pre><code>    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)
      })
  
  }
  </code></pre>