Rhaffaele Posted November 7, 2019 Share Posted November 7, 2019 what are the files to load on my head to use the draggable plugin? Link to comment Share on other sites More sharing options...
Rhaffaele Posted November 7, 2019 Author Share Posted November 7, 2019 See the Pen QWWroZV by rha-elettronica (@rha-elettronica) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted November 7, 2019 Share Posted November 7, 2019 Hey Rhaffaele, Sorry, I accidentally deleted my last post. Here are the correct links to TweenMax and Draggable which is the easiest way to load Draggable. <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/latest/utils/Draggable.min.js"></script> In CodePen it's generally best to put them in the JavaScript resources though. Click the cog on the JS panel to get there. See the Pen OJJZqYv by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Rhaffaele Posted November 7, 2019 Author Share Posted November 7, 2019 I apologize very much. I'm a newbie, but on my server it still doesn't work. http://www.mercuri-digital.com/Raffaele/test87/drag.html Link to comment Share on other sites More sharing options...
ZachSaucier Posted November 7, 2019 Share Posted November 7, 2019 You seem to be using the ESM module version of TweenMax and Draggable. You want to use the compiled (probably minified) versions instead. On GitHub they can be found here: https://github.com/greensock/GreenSock-JS/tree/master/src/minified Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now