IndM Posted July 11 Share Posted July 11 I don't get why the drawSVG is not working here? I'm trying to get that green line to start from nothing. I've been comparing to other demo's and based on this one: See the Pen rNOBLBV by GreenSock (@GreenSock) on CodePen See the Pen OJazMgJ by indy-meermans (@indy-meermans) on CodePen Link to comment Share on other sites More sharing options...
Solution Rodrigo Posted July 11 Solution Share Posted July 11 Hi, I think the issue here is that your path is not a line but a closed path. DrawSVG animates the stroke of a path not the fill. Here is a fork of your codepen with a stroke and stroke-width applied to it so you can see the problem: See the Pen JjeMRBm by GreenSock (@GreenSock) on CodePen You have to make that particular pat a single line, like the example you linked from the GreenSock collection. Hopefully this helps. Happy Tweening! 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