Jump to content
Search Community

Mohammed Sameeh

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by Mohammed Sameeh

  1. Hi @Rodrigo, Thank you for your reply.

     

    Below is the Demo for the code given by @GreenSock. Its working perfectly. The index is getting logged.

    https://codesandbox.io/s/gsap-react-horizontal-scroll-forked-lgj0t6?file=/src/scenes/Scene.jsx

     

    Below is the same code + 2 Lines I have added to store that page index as a state variable. But when the setState is called, the animation is abrupted. 

     

    https://codesandbox.io/s/gsap-react-horizontal-scroll-forked-jid5oy?file=/src/scenes/Scene.jsx

     

     

  2. Hi @GreenSock , I had implemented the first option to my website and it worked great. But I got several feedback from users when they were using the sites in mobile. the Scroll Delay worked well for the 1st & Last Container. But Is there a way we can add similar scroll pause to the 2nd & 3rd Slides also...? I tried several options but couldnt make it work. Any help would be appreciated.

  3. Hi @GreenSock , I have been trying to add one extra effect in the below codesandbox 

    https://codesandbox.io/s/gsap-react-horizontal-scroll-mr4gb1?file=/src/App.js

     

    What I was looking for is once the horizontal scrollable 'slider' is pinned, then the horizontal animation should not start untill user scrolls some distance. ie. the animation to be paused for some pixels. then the scrolling can start and also when it reaches the last container in the slider div, also then some pause in scrolling should happen. 
     The purpose is to have some buffer so that 1st & last slides in the horizontal scrolling section is not missed by user. 

    Any Help appreciated..

×
×
  • Create New...