Hi,
i am attempting to get a basic flash for a button, and an alternative flash for another button but i keep getting glitches if i don't set an alpha value first, it's as if the tween doesn't occur because the alpha value is already at the .to value.
http://codepen.io/anon/pen/CAdry
var tlA = new TimelineLite({onComplete: function(){ this.restart();}})
var tlB = new TimelineLite({onComplete: function(){ this.restart();}})
//TweenLite.set("#redBox",{alpha:1})
tlA.to("#redBox", 1, {delay: 0, alpha:0})
.to("#redBox", 1, {delay: 0,alpha:1})
//TweenLite.set("#blueBox",{alpha:0})
tlB.to("#blueBox", 1, {delay: 0, alpha:1})
.to("#blueBox", 1, {delay: 0,alpha:0})
With the 2 tweens commented out blue box will glitch, commented back in the blue box is fine
Anyone got any ideas why?
Thanks
Sean