Jump to content
Search Community

Assafi

Premium
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Assafi

  1. Hello guys!

    I am trying to figure out a way to make items enter one after another, but only when they appear on the screen.
     

    I am able only to have an entire line of items enter together, and I want to separate the appearance so the items will enter one by one yet will stop entering if not in the viewport.
     

    Here's what I managed to do; how do I go on from here?


     

    Your help is much appreciated!!!
     

     

    See the Pen OJGYZaM by the_w4 (@the_w4) on CodePen

  2. Ok that was easy!

    But actually, I need something a little bit more complicated. I need to change a value inside a tween before it ends and repeats.

    I have a scroll-triggered timeline that pins an element until it tweens all the way to the end of it and then the regular scroll continues.

    I calculated the amount it needs to move and placed it in a variable (to_scroll_dis).

    Let's say the element's width changed due to screen resizing - how can I change this variable while the timeline is running?

    In the example, I added a button to change the width of the element to imitate this kind of situation.

     

    I need to end the animation exactly where the element is ending, and as you can see - when I resize it needs to be recalculated and placed again in the timeline.

     

    Thanks in advance for your help!

     

    See the Pen poQzKqL by the_w4 (@the_w4) on CodePen

  3. Hi!

    I am trying to build a timeline, that changes on demand.

    In the Code Pen attached you can see a simple circle animation, it goes 250px to the right and back. I want the distance the circle passes will change upon button click.

    Any ideas?

    Thanks!

     

    See the Pen eYQOeoN by the_w4 (@the_w4) on CodePen

×
×
  • Create New...