Open theprojectsomething opened 8 years ago
I believe TimelineMax is included in the TweenMax library
This is correct
Yes, even though it needs each file separately, it isn't required as TweenMax loads TimelineMax anyway.
So, I went ahead and removed TimelineMax dependency from define(['ScrollMagic', 'TweenMax', 'TimelineMax'], factory);
here changing it to define(['ScrollMagic', 'TweenMax'], factory);
Builds fine for now
I hit this issue as well. Is this due to a change in Greensock that the plugin hasn't kept up with, or something else I'm misunderstanding?
I figure out they are left separately because one could just use TimelineMax (with TweenLite?) and not TweenMax.
I believe TimelineMax is included in the TweenMax library, yet ScrollMagic requires each file separately in it's AMD setup in animation.gsap.js (adding 6kb to the build).
see https://github.com/janpaepke/ScrollMagic/wiki/Getting-Started-:-Using-AMD