Draggable - throwProps not working

Recommended Posts

This is my first day working with Greensock, so be gentle.  I'm calling Draggable.create with throwProps:true, but the throw effect doesn't seem to occur (dragging works fine).


In HTML:  

  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/TweenMax.min.js"></script>

  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/jquery.gsap.min.js"></script>

  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/plugins/CSSPlugin.min.js"></script>

 <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/utils/Draggable.min.js"></script>


In JS:

Draggable.create(_coin_image, {type:"x,y", throwProps:true});

Share this post

Link to post
Share on other sites

Hi and welcome to the GreenSock forums,


In order to use throwProps:true you must also have ThrowPropsPlugin loaded.

ThrowPropsPlugin is a separate script that is not hosted on any CDN. You need to host it on your site or add it to your local site.

Since you are a Shockingly Green member you can access ThrowPropsPlugin from the zip you download in your dashboard or from the download overlay: https://greensock.com/?download=js.GSAP


Once you load in the plugins/ThrowPropsPlugin.min.js script you should be good to go.

  • Like 3

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.