Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scale-Animation is not running #13

Open
Yetispapa opened this issue May 24, 2018 · 1 comment
Open

Scale-Animation is not running #13

Yetispapa opened this issue May 24, 2018 · 1 comment

Comments

@Yetispapa
Copy link

Yetispapa commented May 24, 2018

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

@Yetispapa Yetispapa changed the title Animation is not running Scale-Animation is not running May 24, 2018
@dpetrov-appolica
Copy link
Contributor

dpetrov-appolica commented Jul 2, 2021

I just copy/paste your code and it's working fine here. Check out your damping, duration, velocity
Can you give more information which device and android version you use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants