Jump to content
Search Community

klickedyklack

Members
  • Posts

    3
  • Joined

  • Last visited

klickedyklack's Achievements

0

Reputation

  1. Hi ZachSaucier Thanks for your answer & solutions! Good to know that I should animatescaleX instead of width . What bothers me in this specific case when animatingscaleX is that there's a small gap between the boxes. When I animate width it looks more organic (like one fluid motion)
  2. When loading the linked pen in a small window and increasing the window size after dom is loaded and the gsap animations completed, the divs with class "animate-box" do not resize even though in the css i give them a width of "25vw". Is there an equivalent of "ScrollTrigger.saveStyles()" for gsap.from()? Or do I have to use fromTo()? I don't want to set the width to 0 in the css and change the width to 25vw in .to() because in case the js doesn't load, the page should still be responsive.
×
×
  • Create New...