Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*/
public class BubbleTransition extends CachedTimelineTransition {
public static final double DURATION = 400.0;
/**
* Create new BubbleTransition
*
* @param node The node to affect
*/
public BubbleTransition(final Node node) {
super(
node,
new Timeline(
new KeyFrame(Duration.millis(DURATION * .0), new KeyValue(node.scaleXProperty(), 0, WEB_EASE), new KeyValue(node.scaleYProperty(), 0, WEB_EASE)),
new KeyFrame(Duration.millis(DURATION * .60), new KeyValue(node.scaleXProperty(), 0.5, WEB_EASE), new KeyValue(node.scaleYProperty(), 0.5, WEB_EASE)),
new KeyFrame(Duration.millis(DURATION * .75), new KeyValue(node.scaleXProperty(), 1.2, WEB_EASE), new KeyValue(node.scaleYProperty(), 1.2, WEB_EASE)),
new KeyFrame(Duration.millis(DURATION * .85), new KeyValue(node.scaleXProperty(), 1.3, WEB_EASE), new KeyValue(node.scaleYProperty(), 1.3, WEB_EASE)),
new KeyFrame(Duration.millis(DURATION), new KeyValue(node.scaleXProperty(), 1.0, WEB_EASE), new KeyValue(node.scaleYProperty(), 1.0, WEB_EASE))
),
false
);
setCycleDuration(Duration.millis(DURATION));
setInterpolator(Interpolator.EASE_BOTH);
setDelay(Duration.millis(200));
}
}