Mattia Sireno
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Mattia Sireno
-
-
Hi everyone!
This is my first post on this forum, and I hope to explain myself better.
I have a problem related to stacking cards, which I cannot create a Scrolltrigger for infinite cards.
My goal is to create a list with only the last 3 cards visible, leaving the active card centered.Below I leave you an example of how my work should be: This is a similar work
My code below will explain the situation better than me
Scrolltrigger stacking cards problem with infinite cards
in GSAP
Posted
Hi Rodrigo!
Thank you so much for the immediate reply and sorry for replying just now.
Thanks to your inspiration I was able to complete my example, which I will leave below if anyone wants to use it.
If you want to take a look and tell me if the last part of the code (using the OnLeave event of the Scrolltrigger) is correct or I could do better.
Thank you again!
See the Pen mdLvNOv by Dyakho (@Dyakho) on CodePen