code: private Animation buildScaleAnimation(final double from, final double to, final boolean show) {
  
          return ParallelTransitionBuilder.create()
                                          .children(
                                                    ScaleTransitionBuilder.create()
                                                                          .node(node())
                                                                          .fromX(from)
                                                                          .toX(to)
                                                                          .fromY(from)
                                                                          .toY(to)
                                                                          .duration(Duration.seconds(1))
                                                                          .build(),
  
                                                    FadeTransitionBuilder.create()
                                                                         .node(node())
                                                                         .fromValue(show ? 0.0 : 1.0)
                                                                         .toValue(show ? 1.0 : 0.0)
                                                                         .duration(Duration.seconds(1))
                                                                         .build())
                                          .build();
      }
docs: Build a scaling animation.
  
  @param from scale ratio used as from value
  @param to scale ratio used as to value
  @param show if true a fade in transition will be performed, otherwise fade out
  
  @return a scale animation