Jump to content
Search Community

::before property

Destro test
Moderator Tag

Recommended Posts

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! 

  • Like 1
Link to comment
Share on other sites

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!

  • Haha 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...