Skip to content

Scale-Animation is not running #13

Open
@Yetispapa

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions