disclaimer: Long time user of GreenSock (back to the days of gs in Flash), and this is a new account.
Is it possible to get the actual hex value rendered on each tick of an animation to pass along as params via onUpdate? An example of grand prize winning answer:
var prop = {bgColor: "#00ffff"}
TweenMax.to(prop, 0.5, {bgColor: "#000", onUpdate: renderHex, onUpdateParams: ["{self}"]})
function renderHex(tween) {
console.log(tween.target.bgColor); //show me "#0000ff", "#00000f", ect ect until the transformation is complete
// currently returns NaN with expected response
}
As always, any direction is greatly appreciated and any conversion of expectations (convert hex to something that can be tracked) is welcomed!