...
|
...
|
@@ -37,7 +37,7 @@ class Overlay { |
|
|
// 初始化参数
|
|
|
this.settings = Object.assign({}, this.defaults, opts);
|
|
|
|
|
|
this.settings.animationClasses = { in : ANIMATIONS[this.settings.animation].in,
|
|
|
this.settings.animationClasses = { in: ANIMATIONS[this.settings.animation].in,
|
|
|
out: ANIMATIONS[this.settings.animation].out
|
|
|
};
|
|
|
|
...
|
...
|
@@ -58,7 +58,7 @@ class Overlay { |
|
|
if (this.isVisible) {
|
|
|
e.preventDefault();
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
|
|
|
this.elem[0].addEventListener('webkitTransitionEnd', this._cleanup.bind(this));
|
...
|
...
|
@@ -78,8 +78,8 @@ class Overlay { |
|
|
this.elem.appendTo('body');
|
|
|
|
|
|
this.elem.css({
|
|
|
visibility: 'visible'
|
|
|
}).show()
|
|
|
visibility: 'visible'
|
|
|
}).show()
|
|
|
.removeClass(this.settings.animationClasses.out)
|
|
|
.addClass(this.settings.animationClasses.in);
|
|
|
|
...
|
...
|
|