...
|
...
|
@@ -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));
|
...
|
...
|
|