@Override protected void starting() {
double startX = node.getScene().getWidth() - node.localToScene(0, 0).getX();
timeline = TimelineBuilder.create()
.keyFrames(
new KeyFrame(Duration.millis(0),
new KeyValue(node.opacityProperty(), 0, WEB_EASE),
new KeyValue(node.translateXProperty(), startX, WEB_EASE)
),
new KeyFrame(Duration.millis(600),
new KeyValue(node.opacityProperty(), 1, WEB_EASE),
new KeyValue(node.translateXProperty(), -30, WEB_EASE)
),
new KeyFrame(Duration.millis(800),
new KeyValue(node.translateXProperty(), 10, WEB_EASE)
),
new KeyFrame(Duration.millis(1000),
new KeyValue(node.translateXProperty(), 0, WEB_EASE)
)
)
.build();
super.starting();