I need to make opacity
of a surface to transform from 0
to 1
like this:
stateModifier.setTransform(
Transform.multiply(Transform.opacity(1), Transform.rotateX(0)),
{ duration : 500, curve: Easing.inOutSine }
);
But Transform.opacity
doesn't exist. I know this is basic but how to transform opacity with other properties like translate
or rotate
.
I know modifier
has setOpacity
according to http://famo.us/guides/animations
UPDATE
I thought stateModifier.setOpacity
is async that can be animated in parallel with others such as translate or scale but it is NOT async. It happens first THEN moves to the next animation. That's why I asked this question.
After you updated your question I think that I better understand what you are looking for. Below is code to change the opacity, size and origin all at the same time. Hopefully is is a better answer than I had previously supplied you. Of course you can view this is a working fiddle here