Bounce Time Remap
Applies a bouncing effect to time remapping for dynamic transitions.
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 = 0.1;
freq = 3.0;
decay = 2.0;
delta = amp * Math.sin(freq * t * 2 * Math.PI) / Math.exp(decay * t);
time + delta
time remapbounceanimation
How to Use
Apply this to the Time Remapping property to introduce a bouncy, dynamic effect during transitions. Adjust the amplitude, frequency, and decay to suit the timing of your animation.