   open override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
     guard let cell = cell as? ElongationCell else { return }
     let expanded = state == .expanded
-    cell.dim(expanded, animated: expanded)
+    cell.dim(expanded, animated: true)
     
     // Remove separators from top and bottom cells.
     guard config.customSeparatorEnabled else { return }

    
    // Scroll to calculated rect only if it's not going to collapse whole tableView
    if force == nil {
      switch config.expandingBehaviour {
      case .centerInView: tableView.scrollToRow(at: indexPath, at: .middle, animated: animated)
      case .scrollToBottom: tableView.scrollToRow(at: indexPath, at: .bottom, animated: animated)
      case .scrollToTop: tableView.scrollToRow(at: indexPath, at: .top, animated: animated)
      default: break
      }
    }
    

      elongationCell.dim(shouldExpand)
      elongationCell.hideSeparator(shouldExpand, animated: animated)
    }
    
    if !animated {
      UIView.setAnimationsEnabled(false)
    }
