FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Android animations that animate a property to its current value do not run. · Issue #759 · NativeScript/NativeScript · GitHub

Android animations that animate a property to its current value do not run. #759

Description

Which is incorrect, since at the time the animation is being played, the value might have changed. For example:

    var definitions = new Array();
    definitions.push({ target: view, opacity: 0 });
    definitions.push({ target: view, opacity: 1 });
    var playSequentially = true;
    var animationSet = new animationModule.Animation(definitions, playSequentially);
    animationSet.play().finished
        .then(function () {
        console.log("Animation finished");
    })
        .catch(function (e) {
        console.log(e.message);
    });

The code above will only animate the opacity to zero, because no ObjectAnimator will be created for the second animation since at the time of creation the opacity is 1 and it will simply be skipped. Which is not correct at all.

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL