Skip to content
Permalink
Browse files

ParallelAnimation

  • Loading branch information...
Typhon0 committed Dec 17, 2018
1 parent b61a7b1 commit 2724468ac4a65a542171d59d04f739a60c32511c
@@ -89,4 +89,4 @@ Please see [CONTRIBUTING.md](https://github.com/Typhon0/AnimateFX/blob/master/C

# Credits

Animations are inspired from awesome project [Animate.css](https://github.com/daneden/animate.css)
Animations are inspired from the awesome project [Animate.css](https://github.com/daneden/animate.css)
@@ -1,17 +1,12 @@
package animatefx.demo;

import animatefx.animation.*;
import animatefx.util.ParallelAnimationFX;
import animatefx.util.SequentialAnimationFX;
import javafx.animation.Animation;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.geometry.Insets;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundFill;
import javafx.scene.layout.CornerRadii;
import javafx.scene.paint.Color;
import javafx.util.Duration;

@@ -367,14 +362,15 @@ public void handleClick(ActionEvent actionEvent) {
.play();

break;

case "SequentialAnimation":
SequentialAnimationFX sequentialAnimationFX = new SequentialAnimationFX(text, new BounceIn(), new BounceOut());
SequentialAnimationFX sequentialAnimationFX = new SequentialAnimationFX(text, new BounceIn(), new Flash());
sequentialAnimationFX.setResetOnFinished(true);
sequentialAnimationFX.play();

break;

case "ParallelAnimation":
ParallelAnimationFX parallelAnimationFX = new ParallelAnimationFX(text, new BounceIn(), new Flash());
parallelAnimationFX.play();
break;
default:
System.err.println("No animation binded to this button");
break;
Oops, something went wrong.

0 comments on commit 2724468

Please sign in to comment.
You can’t perform that action at this time.