由于某些原因,我的动画在完成时会一直返回此错误,但我在代码中没有使用或引用toLowerCase
。
有谁知道造成这种情况的原因是什么?
var myStage = this;
//Timeline
var tl = new TimelineMax({repeat:0});
//Mario
tl.from(myStage.backtext, 2, {alpha:0});
tl.from(myStage.marioface, 1.5, {x:"-=400"}, "+=0.5");
tl.from(myStage.hatty, 1, {x:"+=400"}, "-=0.75");
tl.from(myStage.overalls, 1, {x:"-=400"}, "-=1");
tl.from(myStage.sombrero, 1, {x:"+=400"}, "+=1");
tl.from(myStage.poncho, 1, {x:"-=400"}, "-=0.5");
tl.from(myStage.white, 1, {x:"+=400"}, "+=1");
tl.from(myStage.green, 1, {x:"-=400"}, "-=0.5");
tl.from(myStage.whitebg, 2, {alpha:0});
//onmouseover.from(myStage.replay, 0.3, {rotation:"360", repeat:-1, ease:
//Linear.easeNone});
console.log("animation_done")
//replay
myStage.whitebg.replayBtn.cursor = "pointer";
myStage.whitebg.replayBtn.addEventListener("click", replayFunc);
function replayFunc()
{
alert("working!");
}