
After Effects Tutorial Auto Fade In and Out
Andy Ford May 18, 2023
0 Comments
If you create an expression to automatically fade a layer in and out, it can be efficient in the long run. This is because you'll be able to adjust the beginning and ending times of the layer without having to adjust keyframes.
To get started, create an expression on your layer's Opacity keyframe. Then, determine how long you want the fade to be. By setting a variable for this time, you can easily change it later if needed. For example, you can do: fadeTime =.33;
This is basically 1/3 of a second, or 10 frames in a 29.97 composition.
Next, create a variable for the fade in and use the linear expression. The linear expression has been covered by one of my previous tutorials in 2021. It is written:
Linear(var, varMin, varMax, value1, value2)
In our case, the variable will be time because we're looking at when a layer starts. The varMin is exactly the time the layer starts, which is written as inPoint. The varMax is when the fade should end. In our case that is inPoint fadeTime that we set previously. Then value1 and value2 are 0 and 100, which is the starting and ending opacity.
Written out, it looks like this:
fadeIn=linear(time,inPoint,inPoint fadeTime, 0, 100);
Next, we create a variable for the fade out and use another linear expression. Since we are dealing with the layer's out point, we can use outPoint. The varMax in this instance is when the fade starts, or outPoint-fadeTime. Written out, it looks like this:
fadeOut=linear(time,outPoint,outPoint-fadeTime, 0, 100);
Finally, we combine the two to get the output:
fadeIn-fadeOut;
In entirety, the expression looks like this:
fadeTime =.33;
fadeIn=linear(time,inPoint,inPoint fadeTime, 0, 100);
fadeOut=linear(time,outPoint,outPoint-fadeTime, 0, 100);
fadeIn-fadeOut;
To change the length of fade, change the numeric value .33 to whatever you desire. You can change the layer's starting and ending points as desired and the fade will adjust accordingly thanks to the expression.
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.
May 22, 2023Inherit Parent Opacity in After EffectsWhen you parent one layer to another, many properties work in sync.
May 22, 2023Dehancer Pro Plugin in After EffectsDehancer is a plugin for film effects and film-like color grading. This
Enjoying this tutorial? 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
Email Address *
Name
--
Most recent headlines
05/01/2027
Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be ...
01/06/2026
January 6 2026, 05:30 (PST) Dolby Sets the New Standard for Premium Entertainment at CES 2026
Throughout the week, Dolby brings to life the latest innovatio...
02/05/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
01/05/2026
January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...
01/04/2026
January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION
Douyin Users Can Now Create And Share Videos With Stun...
12/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
12/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
12/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
12/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
12/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
12/02/2026
TIME100 Health list features Scripps Research Professor Darrell Irvine Irvine is recognized for his work in empowering the immune system to fight disease, which...
11/02/2026
FYI: Phone Support Maintenance One thing we pride ourselves on here at Utah Scientific is our 24-hour support included with our signature 10-year hardware warra...
11/02/2026
Leading provider of video streaming solutions, Bitmovin, has appointed Ian Baglow as Co-CEO alongside existing CEO and Co-Founder Stefan Lederer. Under this str...
11/02/2026
Paramount and the CBS Television Network will partner to air UFC 326: HOLLOWAY vs. OLIVEIRA 2 live on Saturday, March 7, from T-Mobile Arena in Las Vegas, mar...
11/02/2026
Beginning February 10, fans can buy MLB.TV on ESPN, a new milestone in one of sports media's longest-standing partnerships. ESPN becomes the new streaming h...
11/02/2026
Fubo Sports Network is available to Hulu's Live TV subscribers in the core $89.99 a month subscription plan, which also includes full access to the entire H...
11/02/2026
Following a competitive public tender process, Rai (Radiotelevisione Italiana), the national public broadcasting company of Italy, has awarded Imagine Communica...
11/02/2026
Major League Baseball is making in-market streaming subscriptions for 20 Clubs available today for fans. Subscriptions for the following Clubs are available vi...
11/02/2026
Building on successful demonstrations during the Paris Olympics 2024, Italian public service broadcaster Rai and the European Broadcasting Union (EBU) are condu...
11/02/2026
Following Sunday's Super Bowl LX, ESPN and Disney unveiled We're Going,...
11/02/2026
Delayed streams are a growing source of frustration for sports fans. During the 2026 Super Bowl, some streams lagged up to 62 seconds behind the action on the f...
11/02/2026
NASCAR and FloSports announces an expanded slate of racing events that will bring FloRacing coverage live throughout the 2026 season to the NASCAR Channel, furt...
11/02/2026
Manifold technologies GmbH announces the appointment of Nick Tucker as Sales Manager for Europe, reinforcing the company's continued growth across broadcast...
11/02/2026
Genies, the AI avatar technology company powering the next era of interactive digital identity, entered into a landmark collaboration with MLB Players, Inc., th...
11/02/2026
The International Cricket Council (ICC) and Google have joined forces for an AI-...
11/02/2026
Dolby's CEO Kevin Yeaman and Giles Baker, SVP of Dolby Cloud Solutions, shared how the brand's latest innovations - Dolby Vision, Dolby Atmos, and Dolby...
11/02/2026
Ilitch Sports + Entertainment has entered a first of its kind partnership with Major League Baseball, which will provide broadcast support to both the Detroit T...
11/02/2026
For major U.S. events like Super Bowl 2026, FIFA World Cup, America 250, and the...
11/02/2026
Broadcasts of the NHL's Detroit Red Wings will also be produced by the leagu...
11/02/2026
Video moves fast can your DAM keep up?
Join Blue Lucy in LA for the West Coast's leading Digital Asset Management event as we explore, celebrate, and acc...
11/02/2026
NEW YORK - February 10, 2026 - An estimated 124.9 million viewers watched Super Bowl LX on Sunday, February 8, according to Nielsen's Big Data Panel measu...
11/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/02/2026
Clear-Com provided an advanced, IP-based communications infrastructure for TEDNext 2025, supporting production, media, and editorial teams with a highly flexib...
11/02/2026
Astera introduces QuikBeam, the newest addition to its acclaimed Quik family of focusing LED Fresnels. This ultra-compact spotlight combines the equivalent powe...
11/02/2026
Following a competitive public tender process, Rai (Radiotelevisione Italiana), the national public broadcasting company of Italy, has awarded Imagine Communica...
11/02/2026
With Convertible Mount for NL Bowens & Aputure A Mounts See it at BSC Expo Stand #133 LCA
DoPchoice continues to refine light shaping tools for professional LE...
11/02/2026
World Premiere at BSC Expo, Booth #319 Oberkochen/Germany, 10 February 2026
ZEISS introduces the new Aatma, set of nine high-end full frame T1.5 cinema primes ...
11/02/2026
As Re-recording Mixer and Head of Sound at The Farm, one of UK's leading post-production facilities, Nick Fry has built his career on making stories sound a...
11/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/02/2026
Graduate Spotlight: Gabrielle Rodriguez The educator, who grew up in the Philippines, shares how shes bringing what she learned at Berklee back home.
Februar...
11/02/2026
Wednesday 11 February 2026
Sky brings together Netflix, Disney , HBO Max and Ha...
11/02/2026
Back to All News
Netflix Confirms Production of Love O'Clock' From the...
11/02/2026
Back to All News
Investing in Belgian Stories: A Commitment to Culture and Choice
From left to right: Undercover, Ang le, Rough Diamonds, Into the Night, John...
11/02/2026
At the end of January, ICG headed off to the Portuguese capital, Lisbon, for our annual conference.
An early flight gave us plenty of time to start exploring s...
11/02/2026
ABS Strengthens Ku-Band Capacity and Expands Regional Reach Through Strategic Pa...