Home › Forums › HTML › How to set 100vw width for the animation of an axis in GSAP animation › Reply To: How to set 100vw width for the animation of an axis in GSAP animation
September 30, 2024 at 11:36 am
#104
vanshika
Participant
You can animate an HTML element with a class of “box” by adding a single change in gsap code in your JS Code:
gsap.to(".box", { xPercent: -200 });