Emax

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

Thanks!  All is working fine, now.

  • Like 1

Share this post


Link to post
Share on other sites

Hello,

 

It's 2018 and I have the same problem, so I look to the answer, but this plugin is not in any archive i've downloaded (premium or classic).

 

It's my 3rd problem in 2 days using GSAP, the first was my activation email not received, the second a 404 error after payment, and now this :D Maybe GS don't want me ? Or maybe I missed something, I'm really tired.

 

Thanks

Share this post


Link to post
Share on other sites

Hi @WebDynamix,

 

Thanks for getting Club membership. We would be happy to help.

 

Are you saying you downloaded files but it doesn't have ThrowProps Plugin? Please visit your Dashboard, there you will find links to download files as per your membership. In your case you will need to download "GSAP with Shockingly Green bonus".

 

kAwtVW.jpg

 

jYqoOi.jpg

 

And sorry that you are facing issues, rest of our team is from USA, they will look into it once they get online.

  • Like 2

Share this post


Link to post
Share on other sites

Hi WebDynamix,

 

I sent you an email yesterday explaining how to log in with your new password.

I did not get a reply.

 

We checked out server records and confirmed your account is set up properly and that multiple activation emails were sent to your original address.

 

I am worried that emails from greensock are not getting to you. Please check your spam folders and make sure the greensock.com domain is whitelisted in your email app and on your mail servers.

 

We definitely want to help you get things sorted.

 

 

  • Like 2

Share this post


Link to post
Share on other sites

On second thought, it does look like you were able to log in ;) - Its a bit early in the morning here.

 

Just to be clear, Draggable is in the utils folder and ThrowPropsPlugin is in the plugins folder

 

 

  • Like 2

Share this post


Link to post
Share on other sites

Oh this time I'm really, really really tired... I was thinking the plugin was public, so yes I have the file !

 

But It's not 100% my fault, the directory "bonus-files-for-npm-users" let me think that contain file for node/npm only ^^ But you designate npm as package manager only ?

 

That works really fine now, thanks and sorry for SPAM.

 

My first "good" day here ;)

 

@Carl thanks for support everything is ok with my email/password and i will try to change email in months because It's my professional account

  • Like 2

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.