Commits

shemnon committed 6f87529

add easing to shift

  • Participants
  • Parent commits ad14633

Comments (0)

Files changed (1)

src/main/java/com/github/shemnon/deckcontrol/skin/ShiftDeckSkin.java

                 translate.setFromX(0);
                 translate.setToX(-deck.getWidth());
                 translate.setOnFinished(hideOldNode);
+                translate.setInterpolator(Interpolator.EASE_BOTH);
 
                 transition.getChildren().add(translate);
             }
                 TranslateTransition translate = new TranslateTransition(Duration.seconds(1), currentNode);
                 translate.setFromX(deck.getWidth());
                 translate.setToX(0);
+                translate.setInterpolator(Interpolator.EASE_BOTH);
 
                 transition.getChildren().add(translate);
             }
                 translate.setFromX(0);
                 translate.setToX(deck.getWidth());
                 translate.setOnFinished(hideOldNode);
+                translate.setInterpolator(Interpolator.EASE_BOTH);
 
                 transition.getChildren().add(translate);
             }
                 TranslateTransition translate = new TranslateTransition(Duration.seconds(1), currentNode);
                 translate.setFromX(-deck.getWidth());
                 translate.setToX(0);
+                translate.setInterpolator(Interpolator.EASE_BOTH);
 
                 transition.getChildren().add(translate);
             }