Commit 39e0b134 authored by wildfirecode's avatar wildfirecode

1

parent 185def7c
......@@ -36,7 +36,7 @@ export default class PanelCtrl {
this._current = panel;
panel.start(data);
this.add(panel);
egret.Tween.get(panel).set({ y: -200 }).to({ y: 0 }, 300, egret.Ease.cubicOut);
egret.Tween.get(panel).set({ y: -200 }).to({ y: 0 }, 500, egret.Ease.quartOut);
}
addMask() {
......@@ -53,7 +53,7 @@ export default class PanelCtrl {
removeMask() {
if (this._mask) {
egret.Tween.get(this._mask).to({ alpha: 0 }, 300, egret.Ease.cubicIn).call(
egret.Tween.get(this._mask).to({ alpha: 0 }, 300, egret.Ease.quartIn).call(
() => this._parent.removeChild(this._mask), this);
}
}
......@@ -65,7 +65,7 @@ export default class PanelCtrl {
private remove(panel: Panel) {
const tw = egret.Tween.get(panel);
tw.to({ y: panel.stage.stageHeight }, 300, egret.Ease.cubicIn)
tw.to({ y: panel.stage.stageHeight }, 300, egret.Ease.quartIn)
.call(() => {
this._parent.removeChild(panel);
this.removeMask();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment