                     thumbnailImageView.alpha = 0
                 })
 
-                
             }, completion: { (finished) -> Void in
 
                 self.transitionView?.alpha = 1

                    animatingVC.mediaView.alpha = 0
                })

                UIView.addKeyframeWithRelativeStartTime(0.2, relativeDuration: 0.8, animations: { () -> Void in
                    transitionViewSnapshot.frame = self.frame
                    thumbnailImageView.frame = self.frame



    func transitionDuration(transitionContext: UIViewControllerContextTransitioning) -> NSTimeInterval {
//        return 2
        return isPresentation ? 0.3 : 0.3
    }

    func animateTransition(transitionContext: UIViewControllerContextTransitioning) {
