greensock / GSAP

GSAP (GreenSock Animation Platform), a JavaScript animation library for the modern web
https://gsap.com
19.56k stars 1.72k forks source link

jspm install, can't seem to use / import Draggable #117

Closed tgienger closed 8 years ago

tgienger commented 9 years ago

I'm not entirely sure how to import gsap properly. I used import TweenMax from 'greensock' for a while until I realized it didn't matter what I imported I was always getting the same thing as import 'greensock'. It seems the only thing I don't have access to is Draggable.

I modified the GreenSock-JS@1.18.0.js file in attempt to include Draggable, but then it couldn't find TweenLite :/

Using jspm / System.js - still learning it.

jackdoyle commented 9 years ago

Sorry, we're not familiar with jspm/system.js. Let us know if there's something specific that you need us to do on our end.

baptistebriel commented 8 years ago

@tgienger what you could use is the browser field in your package.json:

"browser": {
    "Draggable": "./shims/gsap/src/uncompressed/utils/Draggable.js"
    // etc...
}
tgienger commented 8 years ago

Sorry I haven't replied sooner. I'm in the hospital with my wife while she recovers from surgery. I'll do some exploration and try the shim out when I get home and start messing with it again. Thanks for the help!