Share Posted September 6, 2016 Good morning people, Could somebody explain why the 'strokeDashoffset' in the following pen will not animate? Inspecting the element in the DOM and manually manipulating the 'stroke-dashoffet' i can easily animate property. images attached. Thanks See the Pen kkYEpk by Joostan-33 (@Joostan-33) on CodePen 2 Link to comment Share on other sites More sharing options...
Share Posted September 6, 2016 Thanks for the demo and images. Very helpful. The issue was that you set stroke-dashoffset as a CSS property but tried to animate it as an html attribute via the AttrPlugin. This should do the trick: animation.to(thisEl, 3, {attr:{cx:68, cy:67}, ease: Power2.easeOut, strokeDashoffset:62.84}); http://codepen.io/GreenSock/pen/kkYJwx However, since you are a Business Green you should just use DrawSVGPlugin animation.to(thisEl, 3, {attr:{cx:68, cy:67}, ease: Power2.easeOut, drawSVG:0}); http://codepen.io/GreenSock/pen/gwbzxb?editors=0010 4 Link to comment Share on other sites More sharing options...
Author Share Posted September 6, 2016 Thank you. 'noice' work on DrawSVGPlugin, i'm plugging that one in! http://greensock.com/docs/#/HTML5/GSAP/Plugins/DrawSVGPlugin/ 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