mirror of
https://github.com/artiemis/artie.moe.git
synced 2026-02-14 09:01:55 +00:00
add model load fade in
This commit is contained in:
parent
144113efde
commit
9ded734f03
@ -49,9 +49,12 @@
|
|||||||
motionPreload: MotionPreloadStrategy.NONE,
|
motionPreload: MotionPreloadStrategy.NONE,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
app.stage.addChild(model as unknown as PIXI.DisplayObject);
|
|
||||||
|
|
||||||
|
app.stage.on("childAdded", () => {
|
||||||
|
canvas.style.opacity = "1";
|
||||||
canvas.style.cursor = "pointer";
|
canvas.style.cursor = "pointer";
|
||||||
|
});
|
||||||
|
app.stage.addChild(model as unknown as PIXI.DisplayObject);
|
||||||
|
|
||||||
model.internalModel.motionManager.state.shouldRequestIdleMotion = () =>
|
model.internalModel.motionManager.state.shouldRequestIdleMotion = () =>
|
||||||
false;
|
false;
|
||||||
@ -78,5 +81,5 @@
|
|||||||
bind:this={canvas}
|
bind:this={canvas}
|
||||||
on:pointerdown={() => model.motion("Tap")}
|
on:pointerdown={() => model.motion("Tap")}
|
||||||
id="live2d"
|
id="live2d"
|
||||||
class="cursor-pointer left-0 bottom-0 fixed lg:w-96 w-44"
|
class="cursor-pointer left-0 bottom-0 fixed lg:w-96 w-44 opacity-0 transition-opacity"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user