By default, Timeline calculates how property values change between KeyFrame objects using a linear function—changing property values proportionally to the time passed.
You can control that more precisely using the Interpolator API.
By default, Timeline calculates how property values change between KeyFrame objects using a linear function—changing property values proportionally to the time passed.
You can control that more precisely using the Interpolator API.
You can set interpolators when creating KeyValue:
new KeyValue(node.translateYProperty(), 200, Interpolator.LINEAR);
The default interpolator is Interpolator.LINEAR.
Visually, it looks like an abrupt stop at the end of the animation. To soften that, you can use one of the easing interpolators:
You can see them all at work...