Yaya Posted July 17, 2020 Share Posted July 17, 2020 I am trying to change colors for a path that I might also change to <text> The text is "We Excel For You" introTl.fromTo("#logo-tagline", { color: "#303d8b" }, { color: "#6479f9", duration: 3.5 }, 0); That yields no results. I removed the fill color inside the SVG for "We", which then turned it black. It was a test to see if I need to remove the fill color from the svg or not. I was looking for the Color Plugin since I could not get it working with the built-in Css Plugin. Thanks in advance! See the Pen rNOOqWy by yayaCreates (@yayaCreates) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted July 17, 2020 Share Posted July 17, 2020 That's a fill, not "color" Just change "color" to "fill" and you're all set. That's not a GSAP thing - it's just how SVG works. Remember, GSAP just animates whatever properties the element has. Make sense? 2 Link to comment Share on other sites More sharing options...
Yaya Posted July 20, 2020 Author Share Posted July 20, 2020 Thanks Jack, I should have tried that. 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