Using TweenLite / TimelineLite server-side with node.js in GSAP Posted September 14, 2014 Hey guys, I'm not sure if this still is an issue but this topic was the first that appeared on google for me. I got TimelineMax working on node.js. // shim for all the methods gsap is testing for css prefixes, etc var window = {} , navigator = { userAgent: "" } , dummyElement = { style: {}, getElementsByTagName: function() { return [] } } , document = { createElement: function() { return dummyElement } }; /* insert tweenmax here */ // export timeline max module.exports = TimelineMax; That's all. You simply just need to provide the few window and document methods that TweenMax is testing. Maybe this helps other people who also find this topic through google. (ofcourse removing the css portion from tweenmax is still the cleanest way) 1
Using TweenLite / TimelineLite server-side with node.js
in GSAP
Posted
Hey guys, I'm not sure if this still is an issue but this topic was the first that appeared on google for me.
I got TimelineMax working on node.js.
That's all. You simply just need to provide the few window and document methods that TweenMax is testing.
Maybe this helps other people who also find this topic through google.
(ofcourse removing the css portion from tweenmax is still the cleanest way)