Java FX animations between different menus

java, javafx, user-interface

Solution

After a few failed tries, I decided to search for what is used in the gif I showed.

I eventually found it and it was exactly what I was searching.

github.com/AurelienRibon/sliding-layout

It's a very small library used for smooth animations between layouts of components. It's very easy to use!

In 20 minutes I was able to do this: imgflip.com/i/tmef

Problem

I'm developing a java game and I planned to do the UI with Swing, but I wanted to have animations between the menus, and for what I know, that would be hard to achieve. I've been searching all day and saw that Java FX has transitions and transformations. I've been playing with it for a while, but I still don't know if I can do what I want. Is it possible to achieve this effect? https://i.stack.imgur.com/zThXH.gif

Original source