Hi, I'm trying to understand the next part of the code published as an example, someone I could explain what happens when you do the following?
//The original post
$("li").each(function(index, element){
var tl = new TimelineLite({paused:true});
tl.to(element, 0.2, {width:120, padding:20})
.to(element, 0.2, {backgroundColor:"#004", color:"orange"}, "-=0.1")
element.animation = tl;
})
//please explain me, only this part
$("li").each(function(index, element){
//code......
element.animation = tl; // this, that does this?
})
I can use any property name?
Thanks...