Jump to content
Search Community

inteltone

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by inteltone

  1. I observed the flickering you point to and noticed that it occurs randomly in terms of timeline repetitions, but definitely after a full timeline repetition has occurred — right before button 1 appears. I tried to use the property refreshOnRepeat: true and it seems this makes your animation work much better.

  2. Hi!

    I can't figure out how to solve two problems. 

    1. I use ScrollTrigger to pin top elements of each section during scrolling. Everything is ok until the window width is less than 600px or something. Top elements kind of jump out from their container.

    2. If I turn on Draggable then ScrollTrigger works incorrectly at all. It looks like there is a conflict between ScrollTrigger and Draggable.

    Thanks in advance for your help!

    See the Pen vYvwMMM?editors=0011 by inteltone (@inteltone) on CodePen

  3. I think I solved my problem with the slider. Now the slider works the way I wanted, but the solution in CSS-code itself is not as beautiful as I would like. Just look at the class "box" in the CSS panel. The solution of the problem is based in general on CSS. Still, it seems to me that accounting for gaps between slides should largely be implemented through a function horizontalLoop in JS.

    See the Pen jOQgbJw?editors=0100 by Valeriy-Medvedev (@Valeriy-Medvedev) on CodePen

    Thanks to everyone who helped me!

  4. @mvaneijgen Thank you for your response.
    You are absolutely right - it is much more productive and useful to write the code yourself, look at what comes out of it, and so on.
    But I'm not too advanced in JS programming. I am just learning. This slider example is almost exactly what I need at the moment. I tried to understand its code, but so far it is too complicated for me, so I turned to this forum for help. The only thing that I lack in it is that the slides are shown in full when there are gaps and the last one among visible is not cut off.
    I think that if such an adjustment was added to horizontalLoop function, then it would only benefit from this. But that's my personal opinion.
    GSAP is just great! I started working with it and am very satisfied. Many thanks to the creators!

  5. On 12/15/2021 at 7:04 PM, PointC said:

    hmmm... maybe I'm not understanding, but I think the helper function would work for that. I've forked that example and switched it to go forward/backwards 5 at a time.

     

    This function that you pointed out to is very helpful indeed! But what about adding gaps between slides? How to do that? And slides have to remain responsive as before. It's a common thing these days these gaps between slides!

×
×
  • Create New...