code: public void setProgressAnimated(double progress) {
          Timeline timeline = new Timeline();
  
          KeyValue keyValue = new KeyValue(this.progressProperty(), progress);
          KeyFrame keyFrame = new KeyFrame(new Duration(400), keyValue);
          timeline.getKeyFrames().add(keyFrame);
  
          timeline.play();
      }
docs: Like the usual {@code setProgress}-method but adds a smooth animation
  
  @param progress The progress to set