This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Auto Fade Opacity - Created by Animoplex: www.animoplex.com | |
// Automatically fades a layer in and out based on the inPoint and outPoint of the layer. | |
// Full Tutorial: https://www.youtube.com/watch?v=BOPfs49VfLE&t=188s | |
fade = 1; // fade duration in seconds | |
fadeIn = (time - inPoint) / fade; | |
fadeOut = (outPoint - time) / fade; | |
if (time < inPoint + fade) { | |
ease(fadeIn, 0, 1) * value; | |
} else if (time > outPoint - fade) { |