Looks like it's partly working, I can do this:
import TimelineMax from 'gsap/TimelineMax';
And with JSPM it will import Tweenlite.js also, but looks like TimelineMax doesn't define TweenMax as a dependency - should it do that?
Simple things like this work (except for the yoyo and repeat part):
var timeline = new TimelineMax();
var valueProxy = {
x: 0
};
timeline.to(valueProxy, 1, {x: 100});
timeline.to(valueProxy, 1, {x: 0, yoyo: true, repeat: -1, onUpdate: ()=> {
console.log(valueProxy.x);
}});
but this doesn't:
var timeline = new TimelineMax();
timeline.to(document.body, 1, {backgroundColor: '#ff2080'});
timeline.to(document.body, 1, {backgroundColor: '#000000', yoyo: true, repeat: -1});