use of javafx.animation.KeyFrame in project fxexperience2 by EricCanull.
the class RotateInDownLeftTransition method starting.
@Override
protected void starting() {
super.starting();
rotate = new Rotate(0, 0, node.getBoundsInLocal().getHeight());
timeline = new Timeline(new KeyFrame(Duration.millis(0), new KeyValue(node.opacityProperty(), 0, WEB_EASE), new KeyValue(rotate.angleProperty(), -90, WEB_EASE)), new KeyFrame(Duration.millis(1000), new KeyValue(node.opacityProperty(), 1, WEB_EASE), new KeyValue(rotate.angleProperty(), 0, WEB_EASE)));
node.getTransforms().add(rotate);
}
use of javafx.animation.KeyFrame in project fxexperience2 by EricCanull.
the class FadeOutRightBigTransition method starting.
@Override
protected void starting() {
double endX = node.getScene().getWidth() - node.localToScene(0, 0).getX();
timeline = new Timeline(new KeyFrame(Duration.millis(0), new KeyValue(node.opacityProperty(), 1, WEB_EASE), new KeyValue(node.translateXProperty(), 0, WEB_EASE)), new KeyFrame(Duration.millis(1000), new KeyValue(node.opacityProperty(), 0, WEB_EASE), new KeyValue(node.translateXProperty(), endX, WEB_EASE)));
super.starting();
}
use of javafx.animation.KeyFrame in project fxexperience2 by EricCanull.
the class RotateInUpRightTransition method starting.
@Override
protected void starting() {
super.starting();
rotate = new Rotate(0, node.getBoundsInLocal().getWidth(), node.getBoundsInLocal().getHeight());
timeline = new Timeline(new KeyFrame(Duration.millis(0), new KeyValue(node.opacityProperty(), 0, WEB_EASE), new KeyValue(rotate.angleProperty(), -90, WEB_EASE)), new KeyFrame(Duration.millis(1000), new KeyValue(node.opacityProperty(), 1, WEB_EASE), new KeyValue(rotate.angleProperty(), 0, WEB_EASE)));
node.getTransforms().add(rotate);
}
use of javafx.animation.KeyFrame in project fxexperience2 by EricCanull.
the class RotateOutDownRightTransition method starting.
@Override
protected void starting() {
super.starting();
rotate = new Rotate(0, node.getBoundsInLocal().getWidth(), node.getBoundsInLocal().getHeight());
timeline = new Timeline(new KeyFrame(Duration.millis(0), new KeyValue(node.opacityProperty(), 1, WEB_EASE), new KeyValue(rotate.angleProperty(), 0, WEB_EASE)), new KeyFrame(Duration.millis(1000), new KeyValue(node.opacityProperty(), 0, WEB_EASE), new KeyValue(rotate.angleProperty(), -90, WEB_EASE)));
node.getTransforms().add(rotate);
}
use of javafx.animation.KeyFrame in project fxexperience2 by EricCanull.
the class FadeInRightBigTransition method starting.
@Override
protected void starting() {
double startX = node.getScene().getWidth() - node.localToScene(0, 0).getX();
timeline = new Timeline(new KeyFrame(Duration.millis(0), new KeyValue(node.opacityProperty(), 0, WEB_EASE), new KeyValue(node.translateXProperty(), startX, WEB_EASE)), new KeyFrame(Duration.millis(1000), new KeyValue(node.opacityProperty(), 1, WEB_EASE), new KeyValue(node.translateXProperty(), 0, WEB_EASE)));
super.starting();
}
Aggregations