Jump to content
Search Community

IfThen

Business
  • Posts

    4
  • Joined

  • Last visited

Everything posted by IfThen

  1. Makes total sense (now)! Thanks again. --Andrew
  2. Okay, I finally got it sorted out, using that post for reference. I'm still not sure why resetting props and re-attaching that .initial class was necessary, but I'm not going to question it at this point. Any additional thoughts or advice are welcome. https://codepen.io/AtlantaJones/pen/OJBEzQX/25f44d5fff94a234b941f4ef60a862d7 Thanks! --Andrew
  3. Funnily enough, I'd seen that post and tried something similar. I'll read up on what gsap.context does and try it again. Will report back in the morning. Thanks! --Andrew PS: And joining Club GreenSock was a no-brainer for us
  4. Having some trouble getting a Scrolltrigger animation adapting to screen size changes. There are four icons equally spaced across the top of the page using flexbox, which are part of the site's nav. When the page loads, these icons start out scaled up and placed at four corners of the viewport. As the user scrolls down, each icon scales down and moves into place where flexbox has positioned them. This demo I've put together is only a part of the full animation (which also includes photos scrolling by), but is pretty much doing what it should...except that it breaks on viewport resize. I had originally built this with just Scrolltrigger and a regular GSAP timeline, but was struggling with getting the positioning right, due to needing the final position to be dictated by flexbox. So when I learned about Flip, it seemed like a good solution. And I think I'm on the right track, but willing to accept that I'm going about it all wrong. I've tried solutions like this one but just couldn't get it worked out. Appreciate any thoughts anyone has! -- Andrew PS: There is also an animatic that shows what the final animation should do, just to help visualize it.
×
×
  • Create New...