To clarify, this is my code. I need to get 'target':
TweenMax.staggerTo($('mini-color-memory-box').children(), 1, {
boxShadow: "0px 0px 30px 5px " + target.parentElement.attributes.color,
backgroundColor:target.parentElement.attributes.color,
borderColor:target.parentElement.attributes.color,
repeat:1,
yoyo:true,
//onComplete: function(){
// console.log(this.target.parentElement.attributes.color);
//}
}, 1);
Also, I actually have a utility function for the above that returns the tween. However, how can I get an attribute of the target being tweened?
TweenMax.staggerTo($('mini-color-memory-box').children(), 1,
myFunctionThatReturnsTheAbove(//how do I pass in my target attribute), 1);