Jump to content


Tweens working in Dreamweaver preview / not in Codepen or on web

Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi, I'm trying to create a project using draggable and cssplugin (for tweening drop shadows). I built it first in Dreamweaver and in the Dreamweaver preview pane everything is working. However, when I publish it to the web and in the codepen I recreated it in, the tweens on mousedown and mouseup are not working.


I'm not sure where the issue is as nothing is coming up in the console errors.  Would it have to do with what order I'm loading my scripts in? This is the order I have them in in my dreamweaver project - 


<script src="jquery-3.3.1.min.js"></script>
    <script src="TweenMax.min.js"></script>
    <script src="Draggable.min.js"></script>
    <script src="MorphSVGPlugin.min.js"></script>
    <script src="DrawSVGPlugin.min.js"></script>
    <script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/findShapeIndex.js"></script>
    <script src="CSSPlugin.min.js"></script>
    <script src="ThrowPropsPlugin.min.js"></script>
    <script src="dragJS.js"></script>


The last one is my own JS file. 


Any advice is much appreciated!







See the Pen YjPvOY by kbeats (@kbeats) on CodePen

Link to comment
Share on other sites

I would say use draggables events instead as it will keep things organized, check docs for equivalent events.


If you still want to use event listeners of your own then you need to set "allowEventDefault" property to true while defining the draggable.



See the Pen pZJaEQ?editors=0010 by Sahil89 (@Sahil89) on CodePen


  • Like 4
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.