How to create an animation during the changing of stages?
-For instance, I have 2 stages that have different sizes(Width and Height). Normally, without any animations, the 2nd screen just pops out in an instant. I want the 2nd stage to show smoothly(like opening or closing a window in Mac OS Sierra). All tutorials that I can find are mostly about animations in changing scenes. Maybe my way of searching is wrong.
Here's how I change stages.
FXMLLoader loader = new FXMLLoader(getClass().getResource(Insert FXML here));
Parent root = loader.load();
Stage stage = new Stage();
stage.setResizable(false);
stage.initStyle(StageStyle.UNDECORATED);
stage.setScene(new Scene(root));
stage.show();
Any thread that are related to what I'm looking for is greatly appreciated.