Hi, I want to use gsap to animate the two pseudo elements (::before and ::after) of my buttons. The each button element is inside a Group component in my react project. I want to play the animations on ::before and ::after alternately. Here is my code:
import React, { useState } from "react";
import { gsap } from "gsap";
import { CSSRulePlugin } from "gsap/CSSRulePlugin";
const animation = (qseudoElement) => {
gsap.registerPlugin(CSSRulePlugin);
const qseudo = CSSRulePlugin.getRule(