Showing posts with label systemjs. Show all posts
Showing posts with label systemjs. Show all posts

Sunday, June 26, 2016

Running gsap (greensock) examples in SystemJS

Once again, nobody spells these things out in detail, leading to a little frustration during late night hacking. I figured it out for you:

$ jspm install jquery jquery-ui css npm:gsap
And in your app.js:

import $ from 'jquery';
import gsap from 'gsap';
import 'jquery-ui';
import 'jquery-ui/themes/base/jquery-ui.css!css';
Theeeere we go! Now the only thing left to do is to prefix gsap modules, e.g. gsap.TweenMax instead of TweenMax.