Hi Guys,
Weird problem. I've got a tweenline:
var tweenCurrentPage = new TimelineMax({paused:true, onComplete:testComplete, onReverseComplete:changelogo});
element = '#aw-heading';
tweenCurrentPage.to(element,0.5,{autoAlpha: 1});
This works fine the first time and the effect lasts 0.5 seconds.
I then reverse the animation this works fine; it lasts 0.5 seconds
I then try and play the animation for a second time... this takes 1 second.
and when reversed takes 1 seconds.
Every time I do the animation, it takes an additional 0.5 seconds (or whatever this initial effect time was set to)
I'd be very grateful for any ideas on how I might solve this problem?
If it's any help, I've looked in the TweenMax.js file and
this.totalDuration()
on line 5422. Is incremented by the 0.5 secs every time. I haven't managed to work back further than this yet.
Thanks all!!
Tom