Destro Posted March 4 Share Posted March 4 how do i change ::before property Link to comment Share on other sites More sharing options...
mvaneijgen Posted March 4 Share Posted March 4 Hi @Destro welcome to the forum! You can use the CSS Rule plugin https://gsap.com/docs/v3/Plugins/CSSRulePlugin/ but as stated on that page it is much easier to create CSS variables for the properties you want to change and then just tween those variables. If you need further assistance be sure to post a minimal demo, so that we can take a look at your setup. Hope it helps and happy tweening! 1 Link to comment Share on other sites More sharing options...
Rodrigo Posted March 4 Share Posted March 4 Hi @Destro and welcome to the GSAP forums! You can use the CSS Rule Plugin but we strongly recommend not to because it has been deprecated in favor of using CSS Variables instead: https://gsap.com/docs/v3/Plugins/CSSRulePlugin/ As mentioned we recommend using this approach: See the Pen PowWgOz by GreenSock (@GreenSock) on CodePen Hopefully this helps. Happy Tweening! 1 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