Insider Tips: How to Loop a Composition in After Effects

Every week, Insider asks one of our expert contributors to share a tip, tool, or technique that they use all the time and couldn’t live without. This week, Laurence Grayson demonstrates how to loop a composition in After Effects.

How to loop a composition in After Effects

Technically speaking, this is how to loop a precomp in After Effects, because the first part of the process is to grab your loop composition—usually an animation cycle—and drop it into a new composition with a longer duration.

Once your loop comp is in place in your new comp, select it and hit Opt+Cmd+T (Mac) or Ctrl+Alt+T (PC) to enable time remapping. This will add time remap keyframes at the beginning and end of your loop comp. It’ll also enable handles at each end of your loop comp that you can drag to create the duration you want your animation to have.

But before you take that step, there are a couple of things you need to to first.

  1. Add an expression (Opt+click / Alt+click on the Time Remap stopwatch.
  2. Replace the expression text timeRemap with loopOut(). After Effects will autocomplete as you type—selecting the correct list entry will make sure you get the syntax right.
  3. Move the composition playhead to the end keyframe and then move it back one frame (Cmd / Ctrl+left cursor).
  4. Delete the last keyframe. If you don’t do this, you’ll get a black frame between each animation cycle.

You can now drag your loop comp’s end handle to the required duration. Job done.

Insider Tips are helpful weekly posts brought to you by’s awesome writers and industry experts. Come back for a new Insider Tip every Wednesday, or subscribe to our newsletter to get a reminder each week.

Laurence Grayson

After a career spanning [mumble] years and roles that include creative lead, video producer, tech journalist, designer, and envelope stuffer, Laurence is now the managing editor for Insider. This has made him enormously happy, but he's British, so it's very hard to tell.

Insider Tips: Using Roto Brush for Rotoscoping in After Effects

Insider Tips: Final Cut Pro’s Machine Learning Object Tracker

Insider Tips: Faster Premiere Pro Rough Cuts