Jump to content
Search Community

Sebastian Nette

Members
  • Posts

    1
  • Joined

  • Last visited

Sebastian Nette's Achievements

1

Reputation

  1. 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)
×
×
  • Create New...