AnimateFX icon indicating copy to clipboard operation
AnimateFX copied to clipboard

Modifier-API

Open 41zu opened this issue 2 years ago • 0 comments

Right now some animations are inflexible and sometimes useless because of that. The best example are the Slide* animations.

With this merge request only the Expand, Contract and Slide* animations support modifying the animation. If needed, this API can be extended to other animations to.

Here are some examples:

new SlideOutDown(node) .setResetOnFinished(true) .applyAnimationModifier(new SlideModifier(45)) .play();

var mod = new ScaleModifier(); mod.setEndScale(1.5); new Expand(node).applyAnimationModifier(mod).play(); new Expand(node).applyAnimationModifier(new ScaleModifier(null, 1.5)).play();


This merge request also has a few adjustments for Gradle 8 and 9 compatiblity.


The Expand and Contract animations have breaking changes, they don't have the setBeginScale and setEndScale methods anymore.

41zu avatar May 26 '23 12:05 41zu