-
-
Save pjburnhill/cdae06590f589fb749893decf2060fcb to your computer and use it in GitHub Desktop.
Auto Fade Opacity - After Effects Expression by Animoplex
This file contains hidden or 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) { | |
| ease(fadeOut, 0, 1) * value; | |
| } else { | |
| value; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment