Sean19 Posted January 10, 2020 Share Posted January 10, 2020 Good Afternoon, I am trying to use the Drawsvg plugin and I am not sure why it is not working. I have read the docs and I would like to simply be able to control the SVG but for some reason whenever I load in the svg, I do not see any animation occur. I have added drawsvg to codepen to make sure I have access and I added a stroke and stroke width in css to ensure I was able to use the plugin. Any help is greatly appreciated. See the Pen wvBjJqz by joseph19 (@joseph19) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted January 10, 2020 Share Posted January 10, 2020 Just update to the more modern API and you should be golden: gsap.from(".ani", {drawSVG:0, duration:2, stagger:0.1}); I also noticed some module errors from you loading a 3rd party script, https://cdnjs.cloudflare.com/ajax/libs/tween.js/18.5.0/Tween.min.js (unrelated to GSAP) 2 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