title: How to fade-in and fade-out special effects as video clips are switched in Javafx?
body: <p>In the below code, I already have an mp4 video playing in mview3, as I click in the switch button, I want the fade-out effect as mview3 stops and some fade-in effect as mview2 starts.</p>
  
  <pre><code>swtch.setOnAction(new EventHandler&lt;ActionEvent&gt;() {
  @Override
  public void handle(ActionEvent arg0) {
        time1 = mplayer3.getCurrentTime();
        mplayer2.setStartTime(time1);
        mplayer2.play();
        secondaryLayout.getChildren().add(mview2);
        secondaryLayout.getChildren().remove(mview3);
  </code></pre>
  
  <p>Please suggest any possible alternatives to have the effects enabled.</p>