Hi there,
I'm wondering if is possible to load an animation with different width and a small delay each time the width gets bigger.
For example:
This is the original code:
The css for the <div cortana_blurb> is set to width: 0;
MU.showBlurb = function(){
TweenMax.to(cortana_blurb, .15, {width: 34, ease:Linear.easeNone}), .4;
TweenMax.to(cortana_blurb, .15, {width:64, ease:Linear.easeNone, delay:.4 });
TweenMax.to(cortana_blurb, .15, {width:111, ease:Linear.easeNone, delay:.8 });
TweenMax.to(cortana_blurb, .15, {width:144, ease:Linear.easeNone, delay:1.2 });
TweenMax.to(cortana_blurb, .15, {width:204, ease:Linear.easeNone, delay:1.6 });
}
What I want is to minimize it to one line code like:
MU.showBlurb = function(){
TweenMax.to(cortana_blurb, .15, {width: 34, 64, 111, 144, 204, ease:Linear.easeNone}), .4;
}
I know it's a trick one, but if there is a way to do it and you guy could help me it will be great.
Kind regards,
Fernando Fas



Reply With Quote
