Hello. I'm making a fan site for the game Azur Lane. And there is a problem: I don't know how to play several animations in an infinite loop.
I display the player on the site like this:
function chibiPlayer(){
new spine.SpinePlayer('chibiAnim', {
skelUrl: urlToSkel,
atlasUrl: urlToAtlas,
animations: [ 'normal', 'motou' ],
alpha: true,
backgroundColor: '#00000000',
showControls: false,
success: (player) => {
let chibiImg = document.getElementById( 'chibiImg' );
let chibiAnim = document.getElementById( 'chibiAnim' );
chibiImg.remove();
chibiAnim.classList.remove('shipPreviewHide');
},
viewport: {
padLeft: '0%',
padRight: '0%',
padTop: '0%',
padBottom: '0%'
}
});
}
chibiPlayer();
Could you please tell me how I can loop the animations 'normal' and 'motou'?
Player version 3.8.
Example files below: