Tino APCS

Interpolation

Have you noticed that animations automatically speed up and slow down at the edges of the animation? In video editing, this is known as - Ease In: Gently start a transition by starting with a speed of 0 and gradually increasing the speed to the target speed.

  • Ease Out: Gently end a transition by slowing down at the end.

You can control the endpoint behavior of a Transition using the method

setInterpolator(Interpolator)

See the Interpolator class constants for what you can pass in. For example, the code below does not slow down at the transition edges.

// Create a Transition
PathTransition pt = new PathTransition();
pt.setDuration(Duration.seconds(2));
pt.setPath(path);
pt.setInterpolator(Interpolator.LINEAR);

Dark Mode

Outline