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.
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);
Last modified: March 13, 2023
Back to More Transitions