Jump to content
Search Community

Mattia Sireno

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Mattia Sireno

  1. 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

    • Like 1
  2. 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.


    image.thumb.png.1fe703f732376f930cd8708b6312d57c.png

    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

     

    See the Pen yLjxNZg by Dyakho (@Dyakho) on CodePen

×
×
  • Create New...