Open
Description
I use your library to animate a button with the spring interpolator. The button has a initial scaleX and scaleY of zero. So it's not visible. Unfortunately the animation is not running or working so the button is not showing up. This is my code:
Flubber.with()
.animation(Flubber.AnimationPreset.SCALE_X)
.animation(Flubber.AnimationPreset.SCALE_Y)
.scaleX(0, 1)
.scaleY(0, 1)
.repeatCount(1)
.duration(buttonAnimationDuration)
.damping(buttonSpringDamping)
.interpolator(Flubber.Curve.SPRING)
.velocity(initalSpringVel)
.delay(buttonSpringDelay)
.autoStart(true)
.createFor(myButton);
I also tried calling the animatino with the .start()
call and not with the .autoStart(true)
but it does not work either.
This is the native animation call which works:
myButton.animate().scaleX(1).scaleY(1).setDuration(buttonAnimationDuration).setStartDelay(buttonSpringDelay).start();
Can you help me here. Thank you
Metadata
Assignees
Labels
No labels
Activity