Skip to main content
Participant
August 22, 2018
Question

Time expression : slow down, then stop

  • August 22, 2018
  • 1 reply
  • 2684 views

Hi everyone,

I've been looking for a solution for hours and I couldn't find any. Basically, I'm using this expression to make a layer rotate :

timeToStart = 4;

timeToStop = 14.60;

if ((time > timeToStart) && (time < timeToStop))

{

  time*400;

}

else

{

  value;

}

I would like the speed to decrease a little before the layer stops, so that the motion looks more natural. Does anybody know how I could do this?

Thanks a lot !

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
August 22, 2018

Like this maybe:

timeToStart = 4;

timeToStop = 14.60;

if ((time > timeToStart) && (time < timeToStop)){

  easeOut(time,timeToStart,timeToStop,timeToStart,timeToStop)*400;

}else{

  value;

}

Dan

Participant
August 23, 2018

It works! Thank you for your help Dan