Good day. The question is this. There is an application written using JavaFX, in which when you click on a button, the Scene object is replaced with a new one via stage.setScene(nextScene) , stage.setScene(nextScene) between windows, as in the installation wizard. Is it possible to somehow tie any animation to this action? That is, for example, the darkening of the original scene, and then when the brightness rises, the next scene is visible.
And is this approach (changing scenes through setScene() ) normal? Maybe there are some other options?
Thank you in advance