Hi,
I'm trying to animate an arbitrary number of objects created dynamically, but somehow it's not working, the object is cerated and added to the div but it doesn't move. Can anybody help be here?
The code I have:
var newImg = document.createElement("img");
newImg.src = "http://www.browsealoud.com/images/browsealoud/plus/uk/Chrome.jpg";
//animationContainer is a div (I've checked this object is correctly referenced)
this.animationContainer.appendChild(newImg);
tl.fromTo(newImg, 5, {left:"20", ease:Linear.easeNone}, {left:"80", ease:Linear.easeNone}, 0);
Thank you!