After Effects basics come down to three things: layers (images stacked inside a composition), keyframes (markers that record a property's value at a point in time) and masks (outlines that decide which part of a layer is visible). Get those three solid, add precomps, shape layers, track mattes and parenting, and you can handle most everyday motion graphics work: logos that pop in, moving type, images that reveal, icons that rotate together. This lesson follows the order you use on a real job, from setting up a composition to packaging the project so it opens on another computer with no missing files.
By the end of this lesson, you will be able to:
- Create a composition with the right size and frame rate for 16:9, 9:16 and 1:1 videos.
- Keyframe the 5 Transform properties and place the anchor point correctly before rotating or scaling.
- Choose between a shape layer, a mask and a track matte for each kind of reveal.
- Use parenting and precomps to control many layers while keeping the timeline tidy.
- Import AI and PSD files with their layers intact, then use Collect Files to move a project to another machine without losing files.
Following the motion graphics roadmap? After Effects basics is step 2, right after the 12 principles of animation and storyboarding. See the 8-step motion graphics roadmap to learn in the right order.
How After Effects works: projects, compositions and layers
After Effects is Adobe's layer-based software for motion and visual effects. Editing software such as Premiere or CapCut is mostly about cutting clips and joining them; After Effects is about making each layer move in detail, frame by frame. In the previous step you learned the 12 principles of animation and storyboarding; this step turns your paper frame breakdown into real keyframes.
Project, composition and footage: what is the difference?
The project is the .aep file you save, like a filing cabinet. Footage is every file you import (images, video, audio, AI, PSD); the project only stores paths to those files, not the files themselves. A composition (comp) is a canvas with its own size, frame rate and duration where you arrange layers on a timeline; comps can be nested inside other comps.
Because the project only stores paths, copying just the .aep file to another computer makes every piece of footage go missing; the project management section near the end solves exactly that. Figure 1 shows a typical editing room.
Set up the composition correctly from the start
Create a comp with Ctrl+N and edit its settings with Ctrl+K (on a Mac, use Cmd for Ctrl and Option for Alt). Lock in four settings first: size, frame rate (fps), duration and background colour. Changing the size halfway through throws off the layout of every layer, so ask the client where the video will be posted before you start.
| Where it is posted | Ratio | Size (px) | Common frame rate |
|---|---|---|---|
| YouTube, TV, landscape LED screens | 16:9 | 1920 × 1080 | 25 fps (Vietnamese broadcast standard) or 30 fps |
| Reels, TikTok, YouTube Shorts | 9:16 | 1080 × 1920 | 25 or 30 fps |
| Square posts | 1:1 | 1080 × 1080 | 25 or 30 fps |
| Portrait feed posts | 4:5 | 1080 × 1350 | 25 or 30 fps |
This lesson uses 25 fps: 1 second = 25 frames, which is easy to do in your head. Timecode reads hours:minutes:seconds:frames, so 0:00:01:20 means 1 second plus 20 frames, which is frame 45.
Stacked layers: the top covers the bottom
A layer higher in the timeline covers the layers below it, like painted sheets of glass stacked on top of each other. The idea goes back to hand-drawn animation: Disney's multiplane camera (Figure 2) held painted glass sheets at several levels so that the foreground and background could move independently.
Photo: HarshLight from San Jose, CA, USA / Wikimedia Commons, CC BY 2.0
Keyframes and the 5 Transform properties
A logo flying in, type scaling up or an icon fading out is really just a change in the 5 Transform properties over time.
The five properties and their shortcuts
| Key | Property | What it controls | Beginner note |
|---|---|---|---|
| A | Anchor Point | Centre of rotation and scaling | Put it in the wrong place and rotation and scaling drift |
| P | Position | Where the layer sits in the frame | Measured from the anchor point |
| S | Scale | Size in % | Raster images get soft above 100% |
| R | Rotation | Angle | Written as revolutions + degrees, e.g. 1x+90° |
| T | Opacity | Transparency, 0–100% | Not passed down to children through parenting |
Hold Shift when pressing a second key to reveal more properties, for example P and then Shift+S. The U key shows every property that has keyframes.
Setting keyframes step by step
- Move the playhead to where the motion starts.
- Click the stopwatch icon next to the property name: the first keyframe is created.
- Move the playhead to where the motion ends and change the value: the second keyframe is added automatically.
- Press Space to preview; J and K jump to the previous and next keyframe.
- Select the keyframes and press F9 (Easy Ease) to soften the motion.
Careful: clicking the stopwatch again deletes every keyframe on that property. If you slip, press Ctrl+Z straight away.
Easy Ease is only a starting point
Keyframes interpolate linearly by default: the object moves at constant speed and stops abruptly, exactly what the slow in and slow out principle tells you to avoid. F9 slows both ends; Shift+F9 slows only the approach into a keyframe and Ctrl+Shift+F9 slows only the departure. At this step you just need the habit of never leaving a starting or stopping keyframe linear; shaping the curves properly is the job of the next step.
Place the anchor point before animating
An imported logo often has its anchor point in the middle of the comp rather than the middle of the logo, so when you scale it, the logo slides sideways. Select the layer and press Ctrl+Alt+Home to centre the anchor point on the layer content, or use the Pan Behind tool (Y) to drag it to the right spot, such as the stem of a leaf so the leaf sways around it. Do this before setting keyframes, because moving the anchor point afterwards breaks existing Position keyframes.
Shape layers and masks: drawing shapes and cutting them out
Both use the same shape tools (Q) and pen tool (G). The rule: draw with no layer selected and you create a new shape layer; draw with a layer selected and you create a mask on that layer.
Shape layers: vector art that lives in After Effects
A shape layer's Contents holds groups, each with its own path, fill, stroke and Transform. The Add button attaches operators such as Trim Paths (draws a stroke on progressively, for line-drawing effects), Repeater (duplicates a shape into a row or ring) and Round Corners. Shape layers stay sharp at any size, and every setting can be keyframed.
Masks: cutting out what a layer shows
A mask is a closed outline drawn on a layer; only the area inside (or outside) stays visible. Press M to open Mask Path, and press M twice quickly to open all mask properties:
- Mask Path: the outline's shape, which can be keyframed.
- Mask Feather (F): softens the edge.
- Mask Opacity: how strong the masked area is.
- Mask Expansion: grows or shrinks the mask in pixels; keyframe it from negative to positive and you have a circular reveal.
Several masks on one layer combine according to their mode: Add, Subtract, Intersect, plus Lighten, Darken, Difference and None. For a hollow ring, use a large circular mask set to Add and a smaller one set to Subtract.
When to use a shape layer and when to use a mask
Need a new shape (background, frame, icon, line)? Use a shape layer. Need to hide part of an existing layer (crop a product photo, cover unwanted parts of a video, reveal an image)? Use a mask.
Track mattes, parenting and precomps: three organising tools
These three tools do not create motion on their own, but they decide whether a project stays tidy or turns into a mess.
Track mattes: one layer as a stencil for another
A track matte makes a layer visible only where another layer (the matte) has pixels. Unlike a mask, the matte is a separate layer with its own keyframes, so you can show type only inside a sliding rectangle, or video only inside letterforms. There are four types: Alpha Matte (visible where the matte has pixels), Alpha Inverted Matte (visible where the matte is empty), Luma Matte (white areas show, black areas hide) and Luma Inverted Matte (the opposite).
In older versions of After Effects, the matte had to sit directly above the layer being cut. Since the 2023 release, the Track Matte column has a menu to pick any layer in the comp as the matte, and one matte can drive several layers. If you still see the matte artwork in the frame, turn off the eye icon of the matte layer.
Parenting: attaching child layers to a parent
In the Parent & Link column, drag the spiral pick whip from the child layer to the parent layer. When the parent moves, rotates or scales, the child follows, on top of its own motion. Children inherit Position, Scale and Rotation but not Opacity; to fade a whole group, precompose it.
The principle is the same as the jointed cut-out figures of animator Lotte Reiniger (Figure 3): each body part is a separate piece linked at a joint. Rotate the upper arm and the forearm and hand follow, while the hand can still bend at the wrist on its own. In After Effects you parent the hand to the forearm, the forearm to the upper arm, and put each part's anchor point at the joint.
Photo: Kjersti Lie / Wikimedia Commons, CC BY-SA 4.0
A common trick: parent every part of a logo to a null object (Layer > New > Null Object); to move or scale the whole logo you only adjust the null.
Precomps: grouping layers into a nested comp
Select layers and press Ctrl+Shift+C to move them into a new comp; in the parent comp the whole group becomes one layer. Use it when the timeline gets too long, when you need one effect or mask on the whole group, to fade the group together, or to reuse a block in several scenes. When precomposing several layers, choose Move all attributes into the new composition. Name the nested comp right away, for example "PRE_logo", not "Pre-comp 1".
Importing Illustrator and Photoshop files properly
Motion projects usually start from static design: a logo in Illustrator, a composite in Photoshop, styleframes drawn on a pen display (Figure 4). Preparing files correctly at the start saves hours when you animate.
Photo: Unknown author Unknown author / Wikimedia Commons, CC0
Preparing Illustrator and Photoshop files
- Every part that will move is its own top-level layer. After Effects only splits the top-level layers of an AI file; sublayers and groups inside are merged. In Illustrator, use Release to Layers (Sequence), then drag the sublayers out to the top level.
- Give layers meaningful names: "letter_N", "leaf_left", "background", not "Layer 1".
- Use RGB colour mode and an artboard with the same ratio as the comp. CMYK print files shift colour in video; see RGB vs CMYK: preparing files with the right colour from the graphic design path.
- Save AI files with Create PDF Compatible File turned on; without it, After Effects may not be able to read the content.
- Type: text in an AI file arrives as shapes and cannot be edited. Photoshop text layers can be turned into editable text with Layer > Create > Convert to Editable Text.
- Smart objects in a PSD come in as one flat layer; if you need the parts, save the contents as a separate file.
Three ways to import: get it right first time
Import with Ctrl+I; the Import As menu has three main choices. Picking the wrong one is the top reason beginners end up fixing the anchor point on every layer.
| Import As | Result | Use it for |
|---|---|---|
| Footage | One flat layer (all merged) or one chosen layer | Backgrounds and textures that do not need splitting |
| Composition | One comp, every layer as big as the comp, anchor points in the middle of the comp | Rarely needed, rotation drifts easily |
| Composition - Retain Layer Sizes | One comp, each layer cropped to its content, anchor point in the middle of each part | Almost every file you will animate |
Keeping vectors sharp and converting to shape layers
Layers from AI files go soft above 100% unless you turn on the Continuously Rasterize switch (the small sunburst icon in the Switches column). To use Trim Paths or recolour individual parts inside After Effects, right-click the AI layer and choose Create > Create Shapes from Vector Layer. After converting, edits to the original AI file no longer update automatically, so only convert once the client has approved the design.
Keeping projects tidy so files never go missing on another computer
Missing files happen because the project only stores paths. Work on the office machine on drive D:, take it home to a laptop with drive C:, and every path breaks; missing footage shows as colour bars. The cure: organise folders from day one and package properly before moving.
A standard folder structure for every project
Give each project one root folder named like "year-month_client_project-name", split into: 01_brief (script, storyboard), 02_design (AI, PSD, fonts from the client), 03_footage (video, photos), 04_audio (music, voice-over), 05_project (.aep files), 06_render (exports). Copy footage here before importing; never import straight from Downloads or the Desktop.
Save versions and turn on auto-save
Use File > Increment and Save (Ctrl+Alt+Shift+S): After Effects saves a new numbered copy, such as "intro_v03.aep", and keeps the old one. In Preferences > Auto-Save, check that auto-save is on and set it to around 10–15 minutes.
Collect Files: package before moving
- File > Dependencies > Remove Unused Footage: drop footage that no comp uses.
- Save the project, then File > Dependencies > Collect Files, with Collect Source Files: All.
- After Effects creates a new folder with a copy of the project, a footage folder and a report listing the fonts and effects used.
- Read the report: fonts and third-party plugins are not collected, so the receiving machine must install them (only send font files if the licence allows it).
An external hard drive like the one in Figure 5 is a common way to move projects; copy the whole collected folder, not just the .aep file.
Photo: Coyau / Wikimedia Commons, CC BY-SA 3.0
Colour bars when you open a project: relinking files
Right-click the missing footage in the Project panel, choose Replace Footage > File (Ctrl+H) and point to the right file; other missing files in the same folder are usually relinked automatically. File > Dependencies > Find Missing Footage filters out everything still missing.
Worked example: a 6-second 9:16 intro for a bakery
The client is a bakery that needs a 6-second opener for Reels, 1080 × 1920, 25 fps. They send an AI logo (a wheat stalk with two leaves and the shop name) and a PSD composite of their bread. Total: 6 seconds × 25 fps = 150 frames.
Step 1: prepare the files and project
- Create the project folder as above and copy logo.ai and bread.psd into 02_design.
- In Illustrator, split three top-level layers: "leaf_left", "leaf_right", "shop_name"; check the file is RGB.
- Import both files as Composition - Retain Layer Sizes and create the comp "MAIN_intro_9x16", 0:00:06:00 long.
Step 2: break it into phases and set keyframes
| Phase | After Effects technique | Frames | From – to frame | Time (seconds) |
|---|---|---|---|---|
| 1. A cream circle scales up as the background | Shape layer, Scale 0% → 100%, F9 | 20 | 0 – 19 | 0.8 |
| 2. The bread photo reveals from the centre | Circular mask, keyframed Mask Expansion, 40 px feather | 25 | 20 – 44 | 1.0 |
| 3. Logo slides in, two leaves sway | Precomposed logo, parented to a null, anchor points at the leaf stems | 30 | 45 – 74 | 1.2 |
| 4. The line "Fresh bread every morning" appears | Text layer + Alpha Matte from a sliding rectangle | 25 | 75 – 99 | 1.0 |
| 5. Hold still so viewers can read | No keyframes | 50 | 100 – 149 | 2.0 |
| Total | 150 | 0 – 149 | 6.0 |
Check: 20 + 25 + 30 + 25 + 50 = 150 frames; 0.8 + 1.0 + 1.2 + 1.0 + 2.0 = 6.0 seconds; 150 ÷ 25 = 6 seconds. On the timeline, phase 3 starts at 0:00:01:20 (frame 45), phase 4 at 0:00:03:00 (frame 75) and phase 5 at 0:00:04:00 (frame 100).
Step 3: the final layer stack
The main comp has 6 layers, top to bottom: "TXT_fresh_bread" (text using the track matte), "MATTE_rectangle" (shape layer used as the stencil), "PRE_logo" (nested comp), "bread.psd" (with the circular mask), "SHP_bg_circle" and "SOLID_bg_brown". Inside PRE_logo, the two leaves and the shop name are parented to a null called "CTRL_logo": animating the null's Position slides the whole logo in, while each leaf's own Rotation makes them sway 2 frames apart.
Step 4: package it for a colleague
After Remove Unused Footage and Collect Files, the collected folder holds: bread.psd 85 MB, logo.ai 4 MB, background music 6 MB and the project file 2 MB, a total of 85 + 4 + 6 + 2 = 97 MB. Your colleague copies the whole folder, opens the project and sees no colour bars: that is a pass.
Common beginner mistakes in After Effects
The logo rotates off-centre
Symptom: the logo orbits a point outside the frame. Cause: imported as plain Composition, so the anchor point is in the middle of the comp. Fix: Ctrl+Alt+Home on each layer; next time import as Composition - Retain Layer Sizes.
Vector logo goes soft when scaled
Symptom: jagged edges when Scale goes above 100%. Cause: Continuously Rasterize is off, or the logo is a small PNG. Fix: turn the switch on, or ask the client for the original AI, SVG or PDF.
Colour bars everywhere on another computer
Symptom: footage shows colour bars. Cause: only the .aep file was copied, or footage was scattered in Downloads. Fix: Replace Footage on the new machine; next time always use Collect Files.
Health and data note: After Effects work means hours of replaying the same few seconds: every 20 minutes or so look into the distance for a few seconds, stand up and move every hour, and keep the monitor at eye level. Strong strobing or flashing effects can bother viewers who are sensitive to flashing light, so reduce the frequency and contrast of flashes. Always keep at least two copies of the project folder in two different places, because any hard drive can fail at any time.
Frequently asked questions
How long does it take to learn After Effects basics?
If you already know Illustrator and Photoshop, many people can make a simple animated logo after about 2–4 weeks of self-study at 1–2 hours a day; in practice it depends on your background and how much you practise.
What is the difference between a mask and a track matte in After Effects?
A mask lives inside a layer and cuts that layer. A track matte uses a whole other layer as the stencil, which can be type, video or a shape layer with its own keyframes. Use a mask for simple reveals; use a track matte for complex stencils or one stencil shared by several layers.
When should I precompose in After Effects?
When you need to group several layers to move them, fade them, apply a shared effect or reuse them in several scenes. Do not precompose everything: too many nested levels make problems hard to track down.
My Illustrator file imports into After Effects as one merged layer. What do I do?
Check whether the parts are top-level layers in Illustrator. If they are sublayers or groups, use Release to Layers, drag them out to the top level, save, and import as Composition - Retain Layer Sizes.
Practice and self-assessment
- Rebuild the 6-second intro with a logo for a shop of your choice, exactly 150 frames at 25 fps.
- Make a pendulum icon: the rod and the weight are two shape layers, the weight is parented to the rod, the anchor point sits at the top of the rod.
- Make a type reveal two ways, with a mask and with a track matte, and compare them when the text has to change.
- Collect Files on your project, copy it to another computer (or another user account) and open it.
Self-assessment criteria
- Pass: every layer and comp has a meaningful name, no "Layer 1" or "Pre-comp 1".
- Pass: the logo rotates and scales around the right centre; no starting or stopping keyframe is left linear.
- Pass: the frames and seconds in your phase table add up to the comp duration.
- Pass: the project opens on another machine with no colour bars.
- Not yet: you had to move anchor points after keyframing, or you sent only the .aep file.
Once keyframes, masks, mattes and parenting feel natural, you will notice that your motion lands in the right place but still does not feel satisfying: stops are abrupt and bounces lack energy. That is the moment to move on to the next step of the roadmap: Graph editor, easing & motion timing, where you shape speed curves so a 3-5 second logo reveal looks smooth and alive.
Keep learning motion graphics: after After Effects basics come the graph editor, kinetic type, 2D character animation, 3D and a 60-second explainer project. See the 8-step motion graphics roadmap.




