I'm also using RequireJS and having issues...
I have this in my paths...
paths: {
'jquery': 'bower_components/jquery/jquery',
'TweenLite': 'bower_components/greensock/src/uncompressed/TweenLite',
'TimelineLite': 'bower_components/greensock/src/uncompressed/TimelineLite',
'TimelineMax': 'bower_components/greensock/src/uncompressed/TimelineMax',
},
this is my shim....
shim: {
'TimelineLite' : {
deps: ['TweenLite'],
exports: 'TimelineLite'
}
}
and this is at the top of my app.js
define([
'jquery',
'TimelineLite'
],
This is my code...
TweenLite.to($('.test'), 1.5, {width:50, height:50, onComplete:function(){console.log('COMPLETED!');}});
Which seems to run just fine and return "COMPLETED!" to the console. However, ".test" does not animate whatsoever. I have tried all this same code, for IDs and Classes for 3-4 different objects on the page and the result is the same.
When I start from scratch and load the GSAP in http://jsfiddle.net/ it works just fine.
So I'm doing something right since I'm not getting any errors.... but nothings seems to actually work.
?
HeLP!