-
Value triggers animation expression
Hello everyone!
I’m trying to write an expression where a value triggers an animation and I’m having trouble getting it to work.
At the moment I have:
x = transform.position[0];
if( x < 340) {ease(time,0,100)} else 0And I can’t seem to find any info on how to continue…
I’m trying to animate the opacity value – with this expression it just jumps to 100 as soon it reaches 340. The animation should have easings on both sides and it can be triggered on any frame of the comp. And last but not least the animations length should be 12 frames.
Can anyone help me with the expression?