A close-up portrait of a woman with short brown hair surrounded by white blossom branches, from a tutorial on creating a cinemagraph in Photoshop and After Effects.
  • How to Create a Cinemagraph in Photoshop and After Effects

  • by Aaron Nace
    January 25, 2024
  • Add to
    favorites

Download Assets

Download Assets

This tutorial includes 1 sample image, 1 sample PSD and 1 PDF guide. Downloads are free with a PHLEARN account.

  • Download the sample images and PSDs from every free tutorial on PHLEARN
  • New free tutorials published every week
  • One free account — sign up once, then download anything
Download

Free PDF Guide · 5 Pages

This Tutorial as a Step-by-Step PDF

Walks through cutting out the subject and petals with Select Subject, the Lasso and Ctrl/Command+J, building sharp and Gaussian Blur petal layers, importing the PSD into After Effects as a Composition with Retain Layer Sizes, Position and Rotation keyframes with Motion Blur for a 2-second loop, and exporting an Animated GIF through Media Encoder. Keep it next to your keyboard.

Download the PDF Guide · 0.5 MB

description

Create a cinemagraph and you have a still photograph with one thing moving in it, looping so cleanly you cannot see the join. It takes Photoshop to separate the layers and After Effects to animate them. In this tutorial, we’ll show you how to animate your images to create stunning Cinemagraphs using both Photoshop and After Effects.

Artist Credit


How to Create a Cinemagraph in Photoshop and After Effects

A cinemagraph is a still photograph with one element moving in it — and because everything else holds perfectly still, that single motion is far more arresting than a video of the same scene. The example here is flower petals drifting across a portrait, some passing in front of the subject and some behind.

It is a two-part job. Photoshop does the cutting and preparation, After Effects does the movement, and the split matters: almost every decision that makes the animation easy is made in Photoshop before After Effects is ever opened.

The original photograph before any elements are separated for animation

Part One: Preparing the Layers in Photoshop

Separate the subject

Click Select Subject in the contextual task bar to isolate the person. Automatic selection usually misses something — press L for the Lasso Tool and hold Shift to add any areas it skipped, particularly around the head.

With the selection active, click the background layer and press Ctrl or Cmd + J to copy the subject onto a layer of its own. Name it. You will be looking at a lot of layers shortly and unnamed ones become unworkable fast.

Cut out the elements that will move

Zoom in on the background and lasso individual flower petals, copying each onto its own layer with Ctrl or Cmd + J.

Select just inside each petal’s edge rather than around it. Catching a rim of background means every copy carries a halo that shows the moment it moves across something else. The selections do not need to be neat otherwise — these will be small and in motion.

Individual flower petals cut out onto separate layers in Photoshop

Put many elements on one layer

This is the decision that saves the most work, and it is counterintuitive.

You could animate every petal separately in After Effects for total control. It would also take hours. Instead, spread the cut-out petals around the canvas, select those layers, group them with Ctrl or Cmd + G and merge with Ctrl or Cmd + E.

You now have one layer holding a whole scatter of petals that animates as a single object. Build two or three of these — a sparse cluster, a dense one — and you get the appearance of dozens of independently drifting petals from three keyframed layers.

Build blurred copies for depth

Duplicate one of the petal layers and run Filter, then Blur, then Gaussian Blur, pushing it hard. These represent petals passing close to the camera, and they are what stops the animation looking flat.

Heavy blur can leave a layer almost invisible. If that happens, press Ctrl or Cmd + J a few times to duplicate it and merge the copies back together — that builds the density back up without reducing the blur.

Do this in Photoshop, not After Effects. Photoshop handles blur faster and better, and every effect baked in now is one less thing After Effects has to compute on every frame of preview.

Save as a PSD

File, then Save As, keeping the PSD format. After Effects imports PSDs with the layer structure intact, which is the whole reason for doing the preparation here.

Part Two: Into After Effects

Import as a composition

File, then Import, then File, and choose your PSD. When prompted, select Import As: Composition with Retain Layer Sizes and editable layer styles.

Choosing Composition rather than Footage is what preserves your layers as separate, animatable objects. Pick Footage and you get a flattened image and none of the preparation counts for anything.

Align layers to the composition

Dragging layers into the timeline often lands them off-center. Open Window, then Align, set it to align layers to composition, and center horizontally and vertically. Toggling the layer confirms it sits exactly where it did in Photoshop.

Stack for depth

Layer order is what puts petals in front of and behind your subject, exactly as in Photoshop. Working bottom to top: background, then the petal layers passing behind, then the subject, then the petal layers passing in front.

The efficient way to get both is to select your petal layers, copy with Ctrl or Cmd + C, click the background layer and paste with Ctrl or Cmd + V. The copies land above the background — behind the subject — while the originals stay in front.

The After Effects timeline with layers stacked in front of and behind the subject

Set the duration

Composition, then Composition Settings, and set duration to about two seconds. Short is right for a looping GIF — long enough to read, short enough to keep the file manageable.

Create a Cinemagraph: Animating the Movement

Expand a layer, open Transform, and you have position, scale, rotation and opacity. Clicking the stopwatch beside a property creates a keyframe and starts recording changes to it.

  1. Move the playhead to the start

    Position the layer fully outside the frame and click the stopwatch beside Position. That sets your first keyframe.

  2. Move the playhead to the end

    Drag the layer across to the opposite side, fully outside the frame. A second keyframe is created automatically.

  3. Add rotation the same way

    Keyframe rotation at the start, then a different value at the end, so the petals tumble as they travel.

  4. Turn on motion blur

    The motion blur switch on each layer, plus the master toggle for the composition. It softens fast movement the way a camera would, and it is the single cheapest thing you can do for realizm.

Three shortcuts worth knowing

Rather than expanding Transform each time: P opens position, S opens scale, R opens rotation. With a dozen layers to animate this saves a great deal of clicking.

Vary the timing

Give each layer a slightly different speed by dragging its end keyframe earlier or later. Identical timing across layers reads as a sheet of petals sliding past; varied timing reads as wind. It costs nothing and it is the difference between mechanical and natural.

The mistake everyone makes

Before adding or changing any property, check where the playhead is sitting. Adjust rotation while the playhead is halfway along and you have created a keyframe in the middle rather than changing the end — and the result behaves in a way that is genuinely confusing to diagnose.

Use the small arrows either side of a property’s keyframe indicator to jump precisely between existing keyframes rather than scrubbing to them by eye.

Making It Loop Cleanly

A looping GIF has one hard requirement: the last frame must match the first. If a petal is halfway across the frame when the animation ends, the loop jumps visibly.

So every moving element starts fully outside the frame on one side and finishes fully outside on the other. The petals sweep through, the frame briefly empties, and the loop restarts invisibly.

Scaling a layer up moves its bounding box, so re-check the end keyframe afterward — an element scaled larger often ends up still poking into frame when it previously cleared it.

Exporting the GIF

  1. File, then Export, then Add to Adobe Media Encoder Queue

    Media Encoder handles GIF output; After Effects on its own does not.

  2. Set the format to Animated GIF

    It is at the top of the format dropdown.

  3. Choose the preset with transparency, matching source

    Transparency matters if anything needs to sit over a background later.

  4. Set the output location and click play

    Rendering a two-second composition takes seconds.

Create a cinemagraph in Photoshop and After Effects: petals drifting across the frame

Then compress it

The file will be far too large for the web — a short animation like this can easily land near 90 MB. Run it through any online GIF compressor, which will reduce the dimensions and color count and typically cut the size by an order of magnitude with little visible difference.

Do not skip this. An uncompressed GIF of this length is unusable on a web page.

Applying It to Other Images

Nothing here is specific to flower petals. Any element you can cut out can be moved across a scene — falling leaves, drifting snow, embers, dust, birds in a distant sky.

The method holds in every case: cut the elements in Photoshop, group many onto few layers, build blurred copies for depth, then keyframe position and rotation with varied timing and motion blur on. Get the preparation right and the animation itself is ten minutes of work.

Quick Reference: Keys, Menus and Settings

  • Cut out subject and petalsSelect Subject, L for the Lasso Tool, Shift to add; Cmd/Ctrl + J copies to a layer
  • Many petals on one layerCmd/Ctrl + G to group, Cmd/Ctrl + E to merge
  • Blurred petals for depthFilter > Blur > Gaussian Blur; duplicate and merge if they fade out
  • Into After EffectsSave as PSD; File > Import > File, Import As: Composition, Retain Layer Sizes; Window > Align to center
  • LengthComposition > Composition Settings, Duration about 2 seconds
  • AnimateStopwatch to keyframe; P position, S scale, R rotation; motion blur switch on each layer
  • Export the GIFFile > Export > Add to Adobe Media Encoder Queue, Animated GIF with transparency, match source

Start and end every moving layer fully outside the frame so the GIF loops without a jump.

Page 1 of the free How to Create a Cinemagraph in Photoshop and After Effects PDF guide

Free Downloads

Follow Along on the Same Photo

Get the sample photo, the layered PSD from the end of the Photoshop part and the 5-page PDF guide through After Effects and the GIF. Free with a PHLEARN account.

Cinemagraphs: Common Questions

What is a cinemagraph?

A still photo where one element moves and everything else stays still. Here it is flower petals drifting across a portrait, some in front of the subject and some behind.

Why use both Photoshop and After Effects?

Photoshop does the cutting, blurring and layer setup; After Effects does the movement. Doing the blur in Photoshop first is faster and leaves less for After Effects to compute.

How do I cut out the petals without a halo?

Use the Lasso Tool (L) and select just inside each petal’s edge so no background comes with it. Press Cmd/Ctrl + J to copy each one onto its own layer.

Do I have to animate every petal separately?

No. Spread several petals around the canvas, group them with Cmd/Ctrl + G and merge with Cmd/Ctrl + E. Each merged layer animates as one object, so a few layers look like dozens of petals.

My blurred petals almost disappeared. How do I fix that?

After Filter > Blur > Gaussian Blur, press Cmd/Ctrl + J a few times to duplicate the layer, then select the copies and merge them with Cmd/Ctrl + E. That builds the density back up.

How do I bring a layered PSD into After Effects?

Go to File > Import > File, choose the PSD and import it as a Composition with Retain Layer Sizes. Every Photoshop layer is then available separately.

How do I get petals both in front of and behind the subject?

Layer order does it, just like in Photoshop. Copy the petal layers with Cmd/Ctrl + C, click the background layer and paste with Cmd/Ctrl + V so the copies sit between the background and the subject.

Why does my GIF jump when it loops?

The first and last frames must match. Start every layer fully outside the frame on one side and end it fully outside on the other, and recheck the end keyframe after scaling a layer up.

How do I export an animated GIF from After Effects?

File > Export > Add to Adobe Media Encoder Queue, set the format to Animated GIF and pick the preset with transparency, match source. The file came out at about 87 MB, so run it through an online GIF compressor before using it on the web.

Are the sample files free?

Yes, with a free PHLEARN account. You get 1 sample image, 1 sample PSD and 1 PDF guide: the portrait and the layered file with the subject and petals already separated.

Master Photoshop, Lightroom and Photography

Join PHLEARN PRO for $12.99 a month or $99.99 a year. Cancel anytime, with a 100% money-back guarantee.

As featured in

  • 500px
  • Adobe
  • Fstoppers
  • HuffPost
  • Inc.
  • PetaPixel