Jump to content
Search Community

ngrmm

Premium
  • Posts

    15
  • Joined

  • Last visited

Posts posted by ngrmm

  1. 8 minutes ago, mvaneijgen said:

    Yes that is one of the options, Personally I like to use the  "<" position parameter, this means animate at the same time as the previous tween. This way it doesn't matter if you end up putting something at the start of the timeline in the future. All the tweens close to each other will start together.

    THX. But looks like the "<" position parameter not doing what I want. I want the frames animation and the box animation to be in sync from timeline start to the end.

  2. @mvaneijgen Thanks! Yes I'm a bit familiar to the snap property. However my example was not the best case for my problem. I forked your demo and added a fourth section.

    Unfortunately it does not work well. When the third Section comes into view, it does not snap and scrolling up causes some problems too.

     

    See the Pen BaVgbrO by ngrmm (@ngrmm) on CodePen

  3. Is it possible to set something like markers (anchors) in the timeline and use them as navigation links?

     

    Normally i would use scrollmagic for this and have extra divs (triggers). So my Wrapper would have the needed scrollheight and my tirggers are positioned absolute to the top. Everytime a trigger reaches the top i would fade-in my layer and update the nav.

     

    Is this even possible with scrollTrigger?

     

    See the Pen jOrKyPv by ngrmm (@ngrmm) on CodePen

  4. as you see in the codepen i have 4 articles inside my section.

     

    i would like to have this animation timeline

    while section is pinned:

    – fadeout article.intro

    – fadein article.one

    – wait a bit

    - fadein article.two

    – wait a bit

    - fadein article.two

     

    something like:

    industries.to('article.intro', {autoAlpha: 0, duration: 1})
    	.to('article.one', {autoAlpha: 1, duration: 3})
    	// wait  duration:3	
      	.to('article.two', {autoAlpha: 1,duration: 3})
    	// wait  duration:3	
    	.to('article.three', {autoAlpha: 1,duration: 3});

     

    and my other question is:

    am i right that i can use the duration as a relative time, because of using scrolltrigger. so my time are actually the pixels. and the sum of all durations are relative to my pixel-distance?

     

    See the Pen gOMzJxw by ngrmm (@ngrmm) on CodePen

×
×
  • Create New...