Hey there, I kinda made all the stuff, but now I have bumped into a problem about updating spanWidth to make clear loop again... What should I do to that this code would get new global variable spanWidth value?
var tl = new TimelineMax();
tl.to( '.ticker-wrapper' , initDuration , { x: -600, ease: Power0.easeNone } );
tl.to( '.ticker-wrapper' , loopDuration , { x: -spanWidth-600, ease: Power0.easeNone, repeat: -1, onRepeat : function(){checkState();}} );