Jump to content
Search Community

ThaoD5

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ThaoD5's Achievements

  1. Hello @mvaneijgen! I've tried this solution before, but unsuccessfully, but I did the other approach of having an array of steps ([0.1, 0.2, ...]) which didnt turn out well at all ! I've just tried yours and it works as a charm ! Thanks a lot for the input and your time;
  2. Hi @Rodrigo, and thanks for your answer! So, indeed, i've looked also at using snap / scrollToPlugin, but the problem isn't really "how" to scroll to, but how to do it to have precisely 2000px translateX on the #innerSlider element. Because right now, it is impossible for me to accurately scroll to a certain element, since scrolling 2000px ends up with a final translateX value of 1757,... What I'm trying to achieve : scroll in the slider, after 500ms, automatically scrollTo the closest element so it's "centered". Let me know if it still isn't clear!
  3. Hello everyone, and thanks for GSAP ! I'm building a slider that mixes quite a lot of GSAP features, i'm nearly there but there is one annoying thing that I am unable to comprehend. I am willing to add in a homemade "snap" feature (much easier to set in place) to have a precise snap on a value that I'd define myself; hereby hardcoded to 2000px. When you do scroll into the slider and wait 500ms, the "snap" simulation takes place, but unfortunately the amount of pixels where it snaps does not reflect the 2000px ( instead, we have 1775px ) What is going on ? Why exactly wouldn't it work this way ? I've tried another approach which is to animate the X value of the track that is getting translated directly, but that does not work with other features like Draggable, since the "scroll" indicator isn't correctly changed (and changing it makes it scroll and go back to a 1775px value) Any help is welcome, I've been scratching my head for a while now
  4. Hey @GreenSock Used the beta for the use case of @Soufiane LASRI but unfortunately the refresh is still happening, I removed everything and just kept the scrollTrigger section without using vh but unfortunately, the refresh is still making my One Plus 6T phone jump. I thought it could be interesting to point out to you guys that this feature still appears as WIP on my side, is there anything else we could do to prevent refreshes to happen on resizes ( mobile ). ? Thanks a lot,
×
×
  • Create New...