-
scroll text layer in segments
I am trying to create a scroll via expression.
the scroll action should be divided to segments: example: move 400px up, stop for 2 sec, then move 400px again, stop… the last block of text should also wait for 2 sec and move on.
I need to: 1.move, 2. update target positions, 3.move again
I thought using the for loop, with ease interpolation, but i can get it to move only once :durMov = 5;
distance = 400
endPos = 2000;
var currentPos;
var finalPos;
for (i=5;position[1] 0; i–){currentPos = position[1];
nextPos = currentPos+distance;ease(time,0,durMov,currentPos,nextPos );
};Thank You ;
durMov = 5;
distance = 400
endPos = 2000;
var currentPos;
var finalPos;
for (i=5;position[1] 0; i--){currentPos = position[1];
nextPos = currentPos+distance;ease(time,0,durMov,currentPos,nextPos );
};