Jump to content
Search Community

JV10

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by JV10

  1. First of all thank you @mvaneijgen for your help.

     

    It is a great idea to get everything working before adding scrollTrigger.

     

    I was able to get exactly what I wanted now. With only two showing 😃 

     

    Now to add the scrollTrigger what the best approach is?

     

     

    Edited:

     

    What I mean by my question, is like did the code above is good in terms of standards to add the scrollTrigger? and also, how can I ensure that the first image and text has opacity 1 from the start?

     

    • Like 2
  2. I am trying to achieve a full-height section that gets pinned when the user reaches it.

     

    As an example the area would start like this (full width)
    image.png.2d764ca1dbe9308f9c232bb38783d037.png

    then if the user scroll the image would change and the bottom part would scroll up making the 8x the crop yield opacity 1 and show the next:


    image.png.4c3390101bb3696e662ea20f34b93bb8.png

     

     

     

    I am not 100% if my codepen reflects exactly what I am trying to do, I believe the images are ok it is working, problem is the scrollable content. first do I need to put it position absolute? How can I scroll between elements? is there a way to set a class like active to the current element and prev next to the corresponding ones?



    Thank you in advance

    See the Pen ZEMXRQY by JV10 (@JV10) on CodePen

×
×
  • Create New...