Jump to content
Search Community

qbunt

Members
  • Posts

    1
  • Joined

  • Last visited

qbunt's Achievements

0

Reputation

  1. Hey man, Just wanted to pass this along, I've attempted to use the above snippet in the JS lib (huge fan by the way). If you implement this tweening approach with TweenMax, you'll get update events, but you won't get any changes to the color object. //tween the color values in myObject TweenMax.to(myObject, 2, {colorProps:{color0:'#000000', color1:'#ffffff'}, repeat:10, yoyo:true, ease:Linear.easeNone, onUpdate:applyProps}); //apply new color values to gradient css of target function applyProps(){ target.style.backgroundImage = '-webkit-gradient(linear, left top, left bottom, color-stop(0.00,' + myObject.color0 + '), color-stop(1.0,' + myObject.color1 + '))'; // I get no updates here, though it does fire onUpdate }​ However, if I attempt the same thing with Tweenlite, I get updates to that object just fine, though the property I get back is RGBa. Is it supposed to work with Tweenmax as well? I realize that tweening gradients is definitely not ideal, as syntax and features are still in flux, just wanted to give you a heads up that something might be up. Thanks man.
×
×
  • Create New...