Jump to content
Search Community

nafiul09

Business
  • Posts

    9
  • Joined

  • Last visited

Posts posted by nafiul09

  1. Hello everyone,

     

    I am new to GSAP and have been trying to achieve something for the last couple of hours, but I am not 100% sure how to do it.

     

    I want to pin the cards on top of each other, and each time a new card is set to pin, it should have some distance set by attributes. Additionally, when a new card starts its animation, all other pinned cards should reduce in opacity by 0.4. Lastly, once the last card finishes its animation, everything should return to normal.

    I have provided a CodePen link. Please check it and let me know how I can fix it.





    Thanks in advance.

    See the Pen bGZKGdW by nafiul09 (@nafiul09) on CodePen

  2. @mvaneijgen I think you didn't understand what I said first and what I mean 2nd. 

    So first thing first animation will start once Start point hits the Scroller-start (while scrolling down) and then the animation will reverse as soon End point hits the Scroller-start/Bottom of the page (while scrolling up) and lastly when the End point hit the Scroller-start or enter the page again then the animation will start again (while scrolling down).

    In short Start -> Scroller-start = Animation start, End <- Scroller-start/Bottom of the page = Reverse animation, and last End -> Scroller-start/Bottom of the page = Animation play again
    (->) = Scroll down
    (<-) = Scroll up

    I hope I explained it better now. Please let me is it possible with one scroll trigger or I have add another trigger to do that. I think you understand what I mean here.

    Thanks,
    Nafiul

×
×
  • Create New...