Hello, I am piggy backing on this thread as I have a similar issue, trying to use the CSSRulePlugin with React. The above answer references the install guide, and also says that the plugin does not need to be registered. Yet on the install page, the code ready to copy is:
import { gsap } from "gsap";
import { CSSRulePlugin } from "gsap/CSSRulePlugin";
How To registerPlugin in React or Gatsby ( gsap v3.3.4 )
in GSAP
Posted
Hello, I am piggy backing on this thread as I have a similar issue, trying to use the CSSRulePlugin with React. The above answer references the install guide, and also says that the plugin does not need to be registered. Yet on the install page, the code ready to copy is:
import { gsap } from "gsap";
import { CSSRulePlugin } from "gsap/CSSRulePlugin";
gsap.registerPlugin(CSSRulePlugin);