We've compiled a bunch of the most frequently asked questions along with their answers here. If you don't find the answer here, search the forums, or contact us.
Does Draggable have any dependencies on things like jQuery?
The only dependency is on GreenSock's very own TweenLite and CSSPlugin (which are also inside TweenMax). There are no dependencies on jQuery or any other libraries, although they work great together.
Does Draggable only work with DOM elements? Can I get it in a canvas-based app ?
Draggable is just for DOM elements, yes, but the real magic behind all the fluid motion and snapping is ThrowPropsPlugin, and that can be used to tween any property of any object, not just DOM elements. So yes, you can absolutely get this kind of motion in other contexts but you'd need to wire up the actual dragging logic yourself and then fire off a ThrowPropsPlugin tween when the user releases their mouse/touch. ThrowPropsPlugin can even track the velocity of any property for you too (even function-based getters/setters!), so it's quite a powerful tool.
What browsers does Draggable support?
Pretty much every major browser is supported including Chrome, Firefox, Opera, iOS, Android and IE even back to version 8! We're not aware of any significant browsers that don't work, but please let us know if you stumble across an issue.
Here are the rough sizes, assuming they're gzipped and minified:
Does Draggable use CSS3 animations or transitions for the motion?
Do I have to purchase a license to use Draggable? Can I use it in commercial projects?
ThrowPropsPlugin is a membership benefit of Club GreenSock, so you need to sign up to get that. Draggable, however, is included in all the standard downloads and you don't need a membership to get that; Draggable can be used apart from ThrowPropsPlugin as long as you don't need the momentum-based motion. GreenSock's standard license allows you to use GreenSock tools for free in
everything except a very specific type of commercial project (if you collect a fee from multiple customers for the app/product/game/site that uses GreenSock tools) which makes it extremely accessible and business-friendly while providing a small funding mechanism to sustain ongoing support, enhancement, and innovation. The web is littered with abandoned “open source” projects, but GreenSock has a years-long track record of commitment to the platform. This unique licensing model is a key component of its sustainability. If you charge multiple customers a usage/access/license fee, please simply sign up for a “Business Green” Club GreenSock membership which comes with a special commercial license granting you permission to do so. Click here for details. Joining the club also gets you members-only bonus plugins, utilities, update notifications, and more.