Skip to content

Instantly share code, notes, and snippets.

@monsieuroeuf
Created June 20, 2017 07:29
Show Gist options
  • Save monsieuroeuf/6aafa2c9578da5e14d91dff37fda3bdc to your computer and use it in GitHub Desktop.
Save monsieuroeuf/6aafa2c9578da5e14d91dff37fda3bdc to your computer and use it in GitHub Desktop.
Auto fade text expression for After Effects
// auto fade text, IN
// http://ianhaigh.com/
try {
var fadeDuration = effect("fade duration")("Slider");
} catch(e) {
var fadeDuration = 1;
}
ease(time, inPoint, inPoint + fadeDuration, 100, -100);
// auto fade text, OUT
// http://ianhaigh.com/
try {
var fadeDuration = effect("fade duration")("Slider");
} catch(e) {
var fadeDuration = 1;
}
ease(time, outPoint - fadeDuration, outPoint, -100, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment