Browse Source

fixed animation coordinates for 9f8a7c0f4c

pull/12/head
Jannik 2 years ago
parent
commit
d8062513e9
Signed by: Seil0 GPG Key ID: E8459F3723C52C24
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/main/java/kellerkinder/HomeFlix/application/MainWindowController.java

+ 4
- 4
src/main/java/kellerkinder/HomeFlix/application/MainWindowController.java View File

@ -297,16 +297,16 @@ public class MainWindowController {
// slide in in 400ms
private void sideMenuSlideIn() {
TranslateTransition translateTransition = new TranslateTransition(Duration.millis(400), sideMenuVBox);
translateTransition.setFromX(-150);
translateTransition.setToX(0);
translateTransition.setFromX(0);
translateTransition.setToX(150);
translateTransition.play();
}
// slide out in 400ms
private void sideMenuSlideOut() {
TranslateTransition translateTransition = new TranslateTransition(Duration.millis(400), sideMenuVBox);
translateTransition.setFromX(0);
translateTransition.setToX(-150);
translateTransition.setFromX(150);
translateTransition.setToX(0);
translateTransition.play();
}


Loading…
Cancel
Save