This is very good suggestion Nate, thanks
I am failing to make that section work though, when I add these lines skeleton just wont load, dont think there are errors.. but still.. something is wrong
full code
<script src="https://unpkg.com/@esotericsoftware/spine-player@4.2.*/dist/iife/spine-player.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@esotericsoftware/spine-player@4.2.*/dist/spine-player.min.css">
<div id="player-container" style="width: 100%; height: 100vh; margin: 0; border: none!important; overflow: hidden;"></div>
<style>
body {
overflow: hidden; /* Hide scrollbars */
display: block";
}
</style>
<script>
new spine.SpinePlayer("player-container", {
jsonUrl: "https://warmanw.com/spine/lunar-beast-annie-alistar.json",
atlasUrl: "https://warmanw.com/spine/lunar-beast-annie-alistar.atlas",
//animation: "combined",
premultipliedAlpha: true,
showControls: false,
alpha: false,
backgroundColor: "#202020ff",
fullScreenBackgroundColor: "#202020ff",
viewport: {
x: -2000,
y: 800,
width: 4000,
height: 4000,
padLeft: "0%",
padRight: "0%",
padTop: "0%",
padBottom: "0%",
//debugRender: true
},
success: (player) => {
player.animationState.setAnimation(0, "combined", true);
}
});
</script>
p.s. I was also followign this example
EsotericSoftware/spine-runtimesblob/4.1/spine-ts/spine-player/example/example.html