Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
casperovergaard

Noob throwplugin issue

Recommended Posts

Ok, so I'm pretty new to GSAP, but loving it already. Only thing is, I'm having difficulties figuring out how throwprops is initialising. 

 

Pen in question 

 

As per the forked pen, I'm running the robust TweenMax library (https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/TweenMax.min.js), which should suffice in terms of plugins, right?

Or so at least I'm interpreting it from https://greensock.com/throwpropsplugin – hit download, include the TweenMax library, and you're set to go with ThrowProps. Then include Draggable as a separate plugin (https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/utils/Draggable.min.js), as stated under the download section of https://greensock.com/draggable

 

Okay, a lot of links, but what I'm trying to conclude is that when I initialise TweenMax and Draggable, ThrowProps is not working. I can see that on every pen out there, ThrowProps is initialised as a standalone plugin (often through http://www.greensock.com/js/src/plugins/ThrowPropsPlugin.min.js), but when trying that script source in my local dev environment, I'm redirected to a 'not allowed' page.

 

If someone could give me a hint in terms of how the various plugins and libraries work together and should be initialised, it would be much appreciated :)

See the Pen WxqbbK by casperovergaard (@casperovergaard) on CodePen

Link to comment
Share on other sites

Ahh, silly me - didn't read the small print of the doc. Throwprops is a paid-to-use plugin. 

A mod can close this topic

  • Like 1
Link to comment
Share on other sites

No worries. Glad you figured it out.

All of our "members only plugins" are free to demo on CodePen.

Feel free to take them for a spin. 

Here is a demo with all the urls you would need.

 

http://codepen.io/GreenSock/pen/OPqpRJ

 

Happy Tweening!

  • Like 2
Link to comment
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.
×