                 constraint.firstItem.layer.transform = constraint.firstItem.transform3d()
             }
         }
-        
         
         // added back view
         var previusView: RotatedView?

            self.alpha = 0
        }
        self.layer.removeAllAnimations()
        self.rotatedX(CGFloat(0))
    }
}

      
        foregroundView.layer.anchorPoint = CGPoint.init(x: 0.5, y: 1)
        foregroundTopConstraint!.constant += foregroundView.bounds.height / 2
        foregroundView.layer.transform = foregroundView.transform3d()
        
        // elements view
