Share Posted December 10, 2016 Im trying to animate the Fill/Stroke of my SVG but its not animating it just snaps in no matter what See the Pen jVpNoE?editors=1010 by cabello986 (@cabello986) on CodePen Link to comment Share on other sites More sharing options...
Share Posted December 10, 2016 "none" is not a color. Try "transparent". Graphic elements also have fill-opacity/stroke-opacity properties you can animate. 4 Link to comment Share on other sites More sharing options...
Author Share Posted December 10, 2016 Thanks,now i ran into this problem trying to animate the stroke See the Pen jVpNoE?editors=1010%C2%A0 by cabello986 (@cabello986) on CodePen and here is what i wanted to achieve See the Pen vyavPX?editors=1010 by cabello986 (@cabello986) on CodePen Why is mine doing some weird strokeDasharray effects? Link to comment Share on other sites More sharing options...
Share Posted December 10, 2016 Hi hacu95 Welcome to the GreenSock forums. You've created an animation fight between GSAP and CSS. Please remove this from line 1of your CSS: *{ transition: 2s all ease-in-out; } It's not usually a good idea to mix CSS and GSAP animations. Once you remove that, it should work correctly for you. Happy tweening. 2 Link to comment Share on other sites More sharing options...
Author Share Posted December 11, 2016 Thanks alot! to both of you 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