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

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

    }
    
    override func animationDidStart(anim: CAAnimation) {
        self.layer.shouldRasterize = true
        self.alpha = 1
    }
    
