Auto Fade In & Out

Fades a layer in at its start and out at its end automatically — the fades follow the layer when you trim or move it.

Expression Code
// Auto Fade In & Out
// Apply to Opacity
fadeIn = 0.5; // Fade-in length in seconds
fadeOut = 0.5; // Fade-out length in seconds
fadeInVal = linear(time, inPoint, inPoint + fadeIn, 0, 100);
fadeOutVal = linear(time, outPoint - fadeOut, outPoint, 100, 0);
Math.min(fadeInVal, fadeOutVal) * (value / 100);
Apply to Opacity. The layer fades in over fadeIn seconds from its in-point and out over fadeOut seconds before its out-point. Trim, slip, or move the layer in the timeline and the fades reposition themselves — no keyframes to fix.
Back to Easing & Timing