                 self.spawn(views)
             })
             animationView?.willDissmissAllViews = {
-                let fadeOutDuration:TimeInterval = 0.2
                 for v in self.staticViews {
-                    UIView.animate(withDuration: fadeOutDuration) {
+                    UIView.animate(withDuration: self.fadeOutDuration) {
                         v.alpha = 0
                     }
                 }
-                UIView.animate(withDuration: fadeOutDuration) {
+            }
+            animationView?.didDissmissAllViews = {
+                UIView.animate(withDuration: self.fadeOutDuration) {
                     self.blurView?.alpha = 0
                 }
-            }
-            animationView?.didDissmissAllViews = {
                 self.blurView?.removeFromSuperview()
                 self.animationView?.removeFromSuperview()
                 self.didDissmissAllViews?()

    
    open var durationOfPreventingTapBackgroundArea: TimeInterval = 0
    open var didDissmissAllViews: Closure?

    fileprivate var staticViews: [UIView] = []
    var animationView: FallingAnimationView?
    var blurView: TKSWBackgroundView?

            }
            
            let showDuration:TimeInterval = 0.2
            
            for staticView in staticViews {
                let originalAlpha = staticView.alpha
                staticView.alpha = 0
