How to make a mask stay still in after effects

How to Keep a Mask Stationary in After Effects

Introduction

By default, a mask in After Effects moves with the layer it is applied to. However, sometimes you may want a mask to remain still while the layer animates. This guide will show you how to achieve a stationary mask using pre-composition.
Step 1: Open Your Project and Identify the Issue
Open your project in After Effects. For example, if you have a text layer that moves from left to right using keyframes in the Position property, any mask you create on that layer will move along with it.

Get 10% off when you subscribe to our newsletter

By subscribing you agree to your email being stored and used to receive the emails in accordance to our Privacy Policy
descount


Step 2: Pre-Compose the Moving Layer
Right-click on the moving layer and select Pre-compose. In the pop-up window, choose Move all attributes into the new composition and click OK. This places the animated layer inside a separate composition, allowing you to mask it independently.


Step 3: Apply a Mask to the Pre-Comp
Select the newly created pre-composed layer, then choose the Shape Tool (Q). Draw a mask on the layer as needed. Adjust Mask Feather to around 109 for a smooth transition, if required. Since the animation is inside the pre-comp, the mask will now stay in place.

-50%
-50%
00hrs : 00mins : 00sec
Happy HolidaysSale sitewide
Shop now



Step 4: Preview the Animation
Press Spacebar to preview the animation. The mask should remain stationary while the content inside the pre-comp moves. If needed, adjust the mask shape or feathering for a better effect.

Step 5: Render the Final Output
Once satisfied, go to Composition > Add to Render Queue, set your preferred export settings, and render the animation.



Conclusion
By using pre-composition, you can ensure that a mask remains in place while a layer moves. This technique is useful for various effects, including text reveals and advanced compositing.

Our Bestsellers