@Override protected void starting() {
super.starting();
rotate = new Rotate(0,0,node.getBoundsInLocal().getHeight());
timeline = TimelineBuilder.create()
.keyFrames(
new KeyFrame(Duration.millis(0),
new KeyValue(node.opacityProperty(), 1, WEB_EASE),
new KeyValue(rotate.angleProperty(), 0, WEB_EASE)
),
new KeyFrame(Duration.millis(1000),
new KeyValue(node.opacityProperty(), 0, WEB_EASE),
new KeyValue(rotate.angleProperty(), 90, WEB_EASE)
)
)
.build();