Bounce Opacity

Creates a bouncing effect on the layer's opacity.

Code

n = 0;
if (numKeys > 0){
  n = nearestKey(time).index;
  if (key(n).time > time){ n--; }
}
if (n == 0){
  t = 0;
} else {
  t = time - key(n).time;
}
amp = .05;
freq = 4.0;
decay = 2.0;
delta = amp * Math.sin(freq * t * 2 * Math.PI) / Math.exp(decay * t);
value + delta * 100
bounceopacityanimation

How to Use

Attach this expression to the Opacity property for a reactive bounce effect that responds to keyframe input. Adjust the parameters to fine-tune the bounce intensity and speed.