A very quick (and crude) attempt to animate the Java cup using JavaFX. This example shows how easy it is to create animations using JavaFX, just by modifying the properties inside a timeline.
Here is an quick gif created using the program:
You can modify the parameters in the code to get different and better results.