misterymyra_collaboration-22

by Admiral Potato

HTML

<script src="https://unpkg.com/vue-perfectlooper"></script>
<link rel="stylesheet" href="https://admiralpotato.github.io/vue-perfectlooper/demo.css">
<div id="app" class="container">
	<div v-for="item in animationList">
		<h2>{{item.id}}</h2>
		<vue-perfectlooper v-bind="item"></vue-perfectlooper>
	</div>
</div>

JavaScript

Vue.component('vue-perfectlooper', VuePerfectlooper);
let base = 'http://root.nuclearpixel.com/animation_frames/misterymyra_collaboration/';
let animationNameList = 
`22-b-comp_a
22-b-comp_o
22-b-comp_o-12_magic
22-b-comp_p
22-b-comp_q
22-b-comp_r
22-a-comp_a`.split('\n').reverse();
let animationList = animationNameList.map(function(animationName){
	return {
		"id": animationName,
		"poster": base + animationName + "/0001.png",
		"src": base + animationName,
		"frames": 48,
		"suffix": ".png"
	}
});
new Vue({
	el: '#app',
	data: {
		animationList: animationList
	}
});