Permalink
Browse files

Created first setup for image sequences.

  • Loading branch information...
CodeHunger
CodeHunger committed Jul 2, 2012
1 parent b3c8727 commit d979859583323999bc27f0109106a633e4a915d7
Showing with 24 additions and 0 deletions.
  1. +4 −0 source/jarallax.js
  2. +20 −0 source/jarallax_image_sequence.js
View
@@ -299,6 +299,10 @@ Jarallax.prototype.cloneAnimation = function (selector, adittionalValues, animat
return newAnimations;
};
Jarallax.prototype.addImageSequence = function(container, imageName, leadingNumbers, callback){
//TODO
}
////////////////////////////////////////////////////////////////////////////////
// Jarallax static methods /////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
@@ -0,0 +1,20 @@
JarallaxImageSequence = function(conainer, image_name, amount, leading_numbers){
this.base_name = image_name.split('.')[0];;
this.file_extension = '.' + image_name.split('.')[1];
}
JarallaxImageSequence.BuilQeue = function(base_name, file_extension, amount, leading_numbers){
for(var i = 0; i < amount; i ++) {
var url;
var id = i.toString();
while (id.length < leading_numbers) {
id = '0' + id;
}
console.log()
}
}

0 comments on commit d979859

Please sign in to comment.