I have a plugin that rotates 360 degrees around a set of images (300 to be precise). I want to know if I can use a for in loop or a for loop to cycle through all the images. Right now It's setup like this.
$("#spin").spritespin({
width : 510,
height : 327,
frames : 10,
image : [
"360rotation/000.jpg",
"360rotation/001.jpg",
"360rotation/002.jpg",
"360rotation/003.jpg",
"360rotation/004.jpg",
"360rotation/005.jpg",
"360rotation/006.jpg",
"360rotation/007.jpg",
"360rotation/008.jpg",
"360rotation/009.jpg",
],
animate : true,
loop : true,
frameTime : 60,
fadeFrames : 20,
fadeInTime : 0,
fadeOutTime : 120
});
This works but I don't want to type out all 300 images. How can I do this faster?