Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the astra domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/sqrtyhjzaqx471/public_html/wp-includes/functions.php on line 6121
How to set 100vw width for the animation of an axis in GSAP animation

Home Forums HTML How to set 100vw width for the animation of an axis in GSAP animation

  • This topic has 2 replies, 2 voices, and was last updated 7 months ago by avi.
Viewing 1 reply thread
  • Author
    Posts
    • #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 });

    • #105
      avi
      Participant

      @Vanshika thanks for the solution

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Scroll to Top