Jump to content
Search Community

Using DrawSVG in Codepen

magyarn test
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



I'm following along with the DrawSVGPlugin tutorial on the website, but seem to be having trouble getting DrawSVG to run. I am a Club Greensock member, so I believe I've pasted in the latest version of TweenMax, which should give me access to the plugin, correct? Thank you for your help.

See the Pen bYBYLV by Nathan_James (@Nathan_James) on CodePen

Link to comment
Share on other sites

51 minutes ago, Sahil said:


@GreenSock is it possible to add/remove draggable trigger elements once draggable is created? I can instead trigger it manually using startDrag method, but was curious if it can be changed later.


You would need to kill and recreate your draggable for that. If all your triggers exists when you create your draggable, you could change their pointer-events from "auto" to "none" to disable a trigger and vice versa.

  • Like 3
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.
  • Create New...