Jump to content
Search Community

Karmor

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Karmor

  1. Hello all, I'm new to GSAP and the scrolltrigger plugin and I think it's fantastic, however I've become unstuck trying to implement an idea for something and need a little assistance so any help is greatly appreciated.

     

    Anyway, what I want to do is reset the triggered animation you see there in the codepen when someone scrolls up then back down the page, which is all working as intended, however, I don't want the reset to trigger while you can still see the element that gets reset. So basically, I want that reset to only happen once the green box is no longer in the viewport, how do I go about doing this?

     

    Very interested in finding out the solution. Thanks a bunch!

    See the Pen PoNzJZb by Karmor (@Karmor) on CodePen

×
×
  • Create New...