             }
             
             panGesture.setTranslation(CGPointMake(0, 0), inView: self.view)
-        }
-        else if panGesture.state == UIGestureRecognizerState.Ended {
+            
+            if let view = self.leftViewController?.view {
+                self.contentCoverView.alpha = 1.0 - abs(view.frame.origin.x) / view.frame.size.width
+            }
+        } else if panGesture.state == UIGestureRecognizerState.Ended {
             if let sidebar = self.leftViewController {
                 self.isLeftViewControllerPresented = self.viewPulledOutMoreThanHalfOfItsWidth(sidebar)
             }

    }
    
    func brindLeftViewToFront() {
        if let vc = self.leftViewController {
            self.view.bringSubviewToFront(vc.view)
        }

    var _topViewController: UIViewController?
    var _leftViewController: UIViewController?
    
    var contentCoverView: UIView
    
    func contentCoverViewClicked() {
        self.isLeftViewControllerPresented = false
    }
    
    func moveMenu(panGesture: UIPanGestureRecognizer) {
        panGesture.view?.layer.removeAllAnimations()
