I'm trying to animate the opening menu in javafx using TranslateTransition, but for some reason it does not work. I need AnchorPane to move 200 pixels to the right (X). I tried to do it differently, but the AnchorPane either does not move at all or moves in the other direction:
TranslateTransition tt = new TranslateTransition(Duration.millis(400),mainWindow); tt.setFromX(0); tt.setByX(200); how it can be done and if it’s not difficult, you can drop the link to the page where they explain in detail how TranslateTransition works