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.
Which is incorrect, since at the time the animation is being played, the value might have changed. For example:
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.