What is the best way to trigger an animation on a react element from another element? in GSAP Posted January 1, 2023 So I have a overlay element that i want to animate(it basically sweeps over the screen). But i want the animation to be triggered by a click on my nav bar. What is the best way to trigger this animation? Note they are 2 seperate components
What is the best way to trigger an animation on a react element from another element?
in GSAP
Posted
So I have a overlay element that i want to animate(it basically sweeps over the screen). But i want the animation to be triggered by a click on my nav bar. What is the best way to trigger this animation? Note they are 2 seperate components