Jump to content
Search Community

oldskool123

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by oldskool123

  1. Hi,

    I'm back again 😅

     

    Everything works, except for when inspecting the demo in Chrome the whole thing goes craz . 

    Didn't notice it until yesterday so I tested in other browsers e.g Safari inspecting with 'dev mode' and it works great.

    So something's not working inspecting the demo in Chrome and haven't solved it yet.. 

     

    Guessing that something with overflow's not working? But

     

    Demo 👉 https://codesandbox.io/s/quiet-microservice-p3ek6

     

     

  2. Thanks again for all the examples. Also looked at YouTube for some examples and I think I understand it a little bit better now...

     

    So I was trying out both ways, both the old- and newskool way  ;) But I didn't quite grasp how to make it to work when it comes to the component. Lets say with the newskool way?

     

    I removed some code and tried doing it like the example but I'm not sure what to do with the <Page ref={(e) => createPanelsRefs(e, 0)}  . . . /> 

     

    I did a new sandbox with the new edits 👉  https://codesandbox.io/s/react-ref-gsap-horizontal-scroll-2-y4x1u

  3. Hi guys! 

     

    Have been using GSAP for a while now and love it!

     

    - First time with React + GSAP and I've been struggling with getting the horizontal scroll to work with dynamic components.

    - I've experimented with it and found out that simple static sections/ divs or whatever works great.

    - The problem is with the dynamic components and I've setup a small demo with it in CodeSandbox here 👉 https://codesandbox.io/s/horizontal-scroll-with-gsap-react-70062 .

     

    - I think the problem the problem is with the ref and that GSAP can't find the ref target but I'm not quite sure... 

     

    I've commented out the static sections that I mentioned are working fine, and below are the dynamic components that I'm trying to get to work. 

     

    Any help would be appreciated 🙏🏽

     

    Thanks! 💚

     

  4. Hi guys!

    I'm new here at GSAP and love it but been struggling with the horizontal scroll a bit in Safari. Couldn't find the right forum for my problem so I'll try here instead.
    When scrolling sideways in the first and last container I want to prevent/ disable the scroll, and only make it possible to scroll horizontal when the user is in the middle container. I think it's because of the width in the middle container but how can I solve it? The problem is in all screen sizes and want it responsive. Seems to be working in Chrome but not Safari.

     

    Thanks in advance!
    Cheers from Sweden

    Skärmavbild 2020-12-07 kl. 20.08.21.png

    See the Pen qBaNRgq by oldskool123 (@oldskool123) on CodePen

×
×
  • Create New...