new KeyFrame( Duration.ZERO, new KeyValue(rightLine.visibleProperty(), false, Interpolator.EASE_BOTH), new KeyValue(leftLine.visibleProperty(), false, Interpolator.EASE_BOTH), new KeyValue(box.rotateProperty(), 0, Interpolator.EASE_BOTH), new KeyValue(box.scaleXProperty(), 1, Interpolator.EASE_BOTH), ), new KeyFrame(Duration.millis(400), new KeyValue(rightLine.visibleProperty(), true, Interpolator.EASE_BOTH), new KeyValue(leftLine.visibleProperty(), true, Interpolator.EASE_BOTH), new KeyValue(rightLine.endXProperty(), (boxWidth + padding - labelOffset) / 2 - boxWidth / 5.5,
new KeyFrame( Duration.ZERO, new KeyValue(rightLine.visibleProperty(), false, Interpolator.EASE_BOTH), new KeyValue(leftLine.visibleProperty(), false, Interpolator.EASE_BOTH), new KeyValue(box.rotateProperty(), 0, Interpolator.EASE_BOTH), new KeyValue(box.scaleXProperty(), 1, Interpolator.EASE_BOTH), ), new KeyFrame(Duration.millis(400), new KeyValue(rightLine.visibleProperty(), true, Interpolator.EASE_BOTH), new KeyValue(leftLine.visibleProperty(), true, Interpolator.EASE_BOTH), new KeyValue(rightLine.endXProperty(), (boxWidth + padding - labelOffset) / 2 - boxWidth / 5.5,