     // MARK: - MotivationsViewInput
     
     func updateMotivations(_ elements: [Motivation]) {
-        isFirstTimeTransform = true
-        
         motivations.removeAll()
         motivations.append(contentsOf: elements)
         

        
        if newTargetOffset < 0 {
            newTargetOffset = 0
        } else if (newTargetOffset > Float(scrollView.contentSize.width)) {
            newTargetOffset = Float(Float(scrollView.contentSize.width))
        }
        
        targetContentOffset.pointee.x = CGFloat(currentOffset)
        scrollView.setContentOffset(CGPoint(x: CGFloat(newTargetOffset), y: scrollView.contentOffset.y), animated: true)
        
        var index = Int(newTargetOffset / pageWidth)
        
        if index == 0 {
            var cell = collectionView.cellForItem(at: IndexPath(item: index, section: 0))
            UIView.animate(withDuration: C.Animation.duration, animations: {
                cell?.transform = C.Animation.Transform.identity
                cell?.alpha = 1
            })
            
            cell = collectionView.cellForItem(at: IndexPath(item: index+1, section: 0))
            UIView.animate(withDuration: C.Animation.duration, animations: {
                cell?.transform = C.Animation.Transform.scale
                cell?.alpha = 0.5
            })
            
        } else {
            
            var cell = collectionView.cellForItem(at: IndexPath(item: index, section: 0))
            UIView.animate(withDuration: C.Animation.duration, animations: {
                cell?.transform = C.Animation.Transform.identity
                cell?.alpha = 1
            })
            
            index -= 1
            cell = collectionView.cellForItem(at: IndexPath(item: index, section: 0))
            UIView.animate(withDuration: C.Animation.duration, animations: {
                cell?.transform = C.Animation.Transform.scale
                cell?.alpha = 0.5
            })
            
            index += 1
            index += 1
            cell = collectionView.cellForItem(at: IndexPath(item: index, section: 0))
            UIView.animate(withDuration: C.Animation.duration, animations: {
                cell?.transform = C.Animation.Transform.scale
                cell?.alpha = 0.5
            })
        }
    }
}


extension MotivationsViewController: UICollectionViewDelegateFlowLayout {
    
    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
        let width = Float(collectionView.frame.width)
        let cellWidth = Float(width - C.Collection.sideEdgeInset * 2)
        
        return CGSize(width: CGFloat(cellWidth), height: CGFloat(C.Collection.cellHeight))
    }
    
    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat {
        return CGFloat(C.Collection.lineSpacing)
    }
    
    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat {
        return 0.0
    }
    
    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {
        let topEdgeInset = CGFloat((Float(collectionView.frame.height) - C.Collection.cellHeight) / 2)
        return UIEdgeInsets(top: topEdgeInset, left: CGFloat(C.Collection.sideEdgeInset), bottom: topEdgeInset, right: CGFloat(C.Collection.sideEdgeInset))
    }
    
}
