The following (attached codepen URL) doesn't work. The only way it works is if I use the TweenMax library. I cannot use that, because the file size is too large(108kb vs 20kb for TimelineMax).
var tl = new TimelineMax(); // TimelineMax fires an error.
The above script fires an "Uncaught ReferenceError: TimelineMax is not defined". error
Very simple code. Why is timelineMax not working? I've tried downloading the library and running this same code locally too, which is what i would like to do in the final build. No luck.
Any help would be much appreciated.