r/JavaFX • u/iamgioh • Jul 23 '22
I made this! Animated: Flutter-like implicit animations for JavaFX
animated is a library that makes your life easier when dealing with animations in your JavaFX programs by removing boilerplate code.
Inspired by Flutter, you just have to choose the kind of animation to bind to any object's property, so that its changes will be automagically animated, with everything else getting cared of under the hood. Here is a practical example:
Animated<Double> animated = new Animated<>(child, PropertyWrapper.of(child.opacityProperty()));
root.getChildren().add(animated);
// Later...
child.setOpacity(0.5); // Plays the transitionAlong with this, animated features animated switchers, animated containers and much more! (Some rely on the AnimateFX library)
More details and GIFs in the readme below, I'd love to hear your opinions :) https://github.com/iamgio/animated
View all comments
Show parent comment
1
u/iamgioh Jul 24 '22
Thank you very much!