Jump to content
GreenSock

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

Draggable Throwprops not functioning

Recommended Posts

This codepen works fine with the cdns, but when I host on my site and link to local versions of Draggable.min.js and ThrowPropsPlugin.min.js

The Throwprops does not work.

I tried locally too, linking to libraries like this just before the end <body> tag:
    <script src="js/drag.js"></script>
    <script src="js/greensock-js/src/minified/TweenMax.min.js"></script>
    <script src="js/greensock-js/src/minified/jquery.gsap.min.js"></script>
    <script src="js/greensock-js/src/minified/utils/Draggable.min.js"></script>
    <script src="js/greensock-js/src/minified/plugins/ThrowPropsPlugin.min.js"></script>

 

I have attached the files I have hosted on my site.
Sorry, I am sure it is something simple, but I cannot figure it out

spintest.html

drag.js

See the Pen LqogvZ by svenghoulieil (@svenghoulieil) on CodePen

Link to comment
Share on other sites

Have you tried loading your drag.js file after TweenMax and the other plugins? Your custom JS that depends on GSAP and the plugins should load last.

 

:)

 

  • Like 3
  • Haha 1
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.
×