Jump to content
Search Community

d_lobsn

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by d_lobsn

  1. I was actually wondering, what I need to do in order to create two ScrollTriggers on the same element and attaching a tween to it, which moves it by a x value.

     

    It seems like the x value is always reset to 0 first, when the new ScrollTrigger is applied. I actually thought relative values are using the current value. What am I missing here. Even setting the transform value initially doesn't seem to work.

     

    PS: I'm aware that the example I posted looks like in could reduce the animations, this is not the case in the real project. Should i actually use a function to calculate the absolute xPercentage?

     

    Any help would be highly appreciated.

    See the Pen PoKreKp by daniel-brolli (@daniel-brolli) on CodePen

  2. thanks for the reply. I was kind of aware of that. but creating a standalone scroll trigger on the same element, but not on the timeline, works as intended. isn't that kind of the same thing.

     

    The problem I'm trying to solve is, that I have a surrounding scrolltrigger responsible for drawing an animation on a canvas and have certain container appearing synchronized with that, but with absolute values as duration and not linked to the scrubbing scrolltrigger. So my initial idea was to define a parent timeline with scrubbing true, have a tween on that timeline responsible for updating the frames and furthermore add more tweens with scrubbing turned off.

     

    is there any easier solution I'm missing here? 

    • Like 1
  3. Hey,

     

    I was actually wondering if I can disable scrubbing inside of an existing timeline as well. as you can see in the following codpen, it works by creating a custom standalone scroll trigger on the same element, but is not working as expected by directly using it inside of the timeline. Am I missing something here?

     

    See the Pen XWawjrG by daniel-brolli (@daniel-brolli) on CodePen

     

    PS: the reason I'm using that many timelines, is due to the fact, that my real project is setup in such a way. I just got rid of all the unneeded things

    • Like 1
×
×
  • Create New...