     var scaleX: CGFloat = 1
     var scaleY: CGFloat = 1
   
-    var willdisappear = false
+    var willDisappear = false
     
     switch(animationType) {
     case .SlideLeft:


    UIView.animateWithDuration(duration, delay:delay, usingSpringWithDamping: damping, initialSpringVelocity: velocity, options: [], animations: { () -> Void in
      self.transform = CGAffineTransformIdentity
      if willdisappear {
        self.alpha = 0
      }
      else {

    case .FadeIn:
      alpha = 0
    case .FadeOut:
      willDisappear = true
    case .FadeOutIn:
      let animation = CABasicAnimation()
      animation.keyPath = "opacity"
