Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java FX animations between different menus

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.sstatic.net/zThXH.gif

like image 715
miguel.gazela Avatar asked Apr 28 '26 00:04

miguel.gazela


1 Answers

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

like image 109
miguel.gazela Avatar answered Apr 30 '26 13:04

miguel.gazela



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!