text that says no keyframes

3 Expressions to fade layers for you in After Effects

Breaking down three different ways to control the visibility of layers by adding an expression to the opacity property. All three methods provide you with easy to apply transitions.

Fade based on position keyframe

The first example is controlling when a layer shows up so that you can quickly highlight part of the screen just by setting the position.

Fade based on in-point and out-point

When you add a layer to your timeline, have it fade in and fade out without setting keyframes, just let the in- and out-points be the trigger.

Fade in and out by layer marker

Imagine you want to set a layer to appear, then disappear repeatedly. With this example, I use even numbered layer markers to trigger the opacity to go from 0% to 100% and odd numbered markers to do the opposite. Working out which is odd and which is even is incredibly simple, thanks to the remainder operator (%), but don’t worry if you’re unfamiliar with that, I break down how it works.

Some contents or functionalities here are not available due to your cookie preferences!

This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

Can’t see this video? Click here! If you are in Safari, hover over “Safari” in your menu, click “settings for creativecow.net” and toggle the “Auto-Play” to “Allow All Auto-Play”.


Star Trek VFX: Recreating John Knoll’s Iconic Warp Stars without a Slitscan Camera
While ILM’s John Knoll originally used physical slitscan photography to create the …
Recreating Doug Trumbull’s Slitscan VFX – After Effects Mastery
In this After Effects tutorial, I'm diving into the legendary slitscan effect. …

Enjoying the news? Sign up for the Creative COW Newsletter!

Sign up for the Creative COW newsletter and get weekly updates on industry news, forum highlights, jobs, inspirational tutorials, tips, burning questions, and more! Receive bulletins from the largest, longest-running community dedicated to supporting professionals working in film, video, and audio.

Enter your email address, and your first and last name below!

Sign up:

* indicates required

Responses

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy