After Effects Smooth Transitions - Animation Tutorial pt. 1

Motion graphics
5 followers
1 Video View·Apr 26, 2026
In this after effects tutorial, I break down how I created this looping coffee animation. I explore workflow, easing & 2D - 3D transitions (well, fake 3D). I'm planning on doing follow up parts exploring more of the transitions and how they were executed and the thought process behind them. The follow-up parts won't be next week, but hopefully not too long. This tutorial is suitable for intermediate users. Please leave a comment if you'd like me to explain anything I skimmed ov …
Hi I'm Ben Marriott. I make weekly motion design and animation tutorials and this week I'm starting
a new series where I'm going to break down every single transition in that animation.
This week the first transition.
All right this project is available for download down in the description for you to dissect
further. I made this project after going on a plug-in diet where I stopped using plugins
that helped with easing so I could focus on really getting comfortable in the graph editor
and that was probably the time where I felt my animation skills improved the most.
So I built this animation a lot around sort of really snapping eases and sort of smooth
transitions just to really try to push myself to my to my limits at the time.
I started off by making all of the illustrated elements in Illustrator which was really only
the mug and the jug, the mug I would duplicate and the coffee bean as well for reference.
The circles and those elements were easy enough to make in After Effects just using the ellipse tool.
Part one of this project breakdown we're really only going to focus on this first transition here.
So we're going to break down this one second of animation in excruciating detail.
Now let's dive into our black cup pre-comp and the first thing you'll notice when we get in here
is that it's all in grayscale. It's in black and white. That's because I'm doing all of the
color correcting and adjustments with an adjustment layer at the top of this comp called color.
The three effects I have on this adjustment layer are CC Toner which creates a kind of
gradient map that allows you to map selected gray values to specific color values and because this
is straight up brown across the whole thing I could have achieved a similar look by using
the tint effect or tritone. I like to use CC Toner because it gives you a little more variety
to the shades. Say if you want this really light brown area to be a little more saturated
you could do that if you wanted or a little more desaturated. It's very easy to adjust
and it gives you a lot more control. And the hue and the saturation are just sort of
amping up the contrast and the saturation. And in this first section both of these coffee cups
have pretty much the same animation with this one on the right, the lighter one,
just having some extra sort of milk and the jug added to it. So I decided first to animate the
cup on the left and then duplicate that and add the extra stuff to the one on the right
after I was finished with it. So let's dive into that first cup. So here's what we've got inside
that cup pre-cut. We start off with our static mug, the coffee being splashed in, the coffee
cup rotating so we get a sort of top down view, and then transforming into this sort of circle
and dot which would be one half of the yin yang symbol that it forms. I'm going to go into detail
on the splash animation in a later video because that is part of the last transition of this loop.
So let's start the work area just after that splash settles and let's shine those layers so
they don't clutter our timeline. The main layers we've got here is this coffee which is a liquid
from our side view, a mat for that liquid, cup lines which is the outline of the cup and the
handle, this yin yang background which is the circle that it forms from the top view,
the coffee top which is the top surface of our coffee, and the top of the cup here which scales
down from being a line to the full circle. I started by animating with the cup top because
it is the simplest single element that once it was animated to my satisfaction it would give me
sort of the most information about the animation that I could use to help me sort of make and
inform decisions about the speed and paths of other shapes in the animation. Let's solo this
so we can just concentrate on this element. I also started in reverse so I have this circle
drawn here and its size is 400 by 400 pixels and then I keyframed it with one axis of the size
moving down to zero. Now I didn't use the scale property to do this and I'll show you why.
If we bring up our scale property, keyframe it, unlink it, and if I drag down one axis of the
scale it does the same sort of action of making it thinner but the stroke width also gets scaled as
well and you get stuck with this sort of hideously looking variation between the line width which I
almost always hate and by the time you get to zero it's not even visible anymore. So that would
defeat the purpose of what we're going for. So let's undo those and the size property does the
same things the scale would do but it keeps the stroke width the same without having to use any
fancy expressions. Now if we go into the graph editor by selecting these keyframes and clicking
here let's make some more room for this. We can see we've got a fairly strong ease out and a much
snappier ease in and although I animated this layer first to set the speed for the rest of the
section I was still going back and fiddling with easing now and then once more elements were
animated to simply try out some different speed options. The next thing I animated was the cup lines
layer and down here you'll see that it has two paths. We have one which is the handle of the cup
and one which makes up the main body of the cup and I also have in pink here a mask and that's
just a mask subtracting out this top line here because we're making that with that ellipse tool
that we've already animated. Now the outside path of the cup which is the bottom one here is animated
with only two keyframes so I keyframed its first position which is the side of the cup and then in
about 10 frames when our ellipsis is a full circle I've adjusted these sort of anchor points to match
that circular shape. Now that's all the animation I needed to do for that path. I also used a plugin
called ease copy which is completely free and one I covered in my top free plugins videos so I can
simply select the keyframes from that cup top ellipse layer and select copy from ease copy over
here and click paste the ease. We've copied the ease exactly from those from the size property to
this layer's path property. This cup handle has a few more keyframes because it has more curves
and when you keyframe between two path positions each of these individual anchor points here will
move in the straightest path between the two keyframes and that can cause the busier handles
at each point to go a little strange and unpredictably in that movement so I've just
added some extra keyframes along the way to keep them on the right path and at the end of this
transition I was kind of drawing them frame by frame which is sometimes just the quickest way.
Then we have our coffee layer down here which is a black rectangle using this above layer as an
alpha matte. This liquid matte layer is essentially a copy of our cup lines layer just scaled down a
little bit and given it a fill as well so it'll matte out just this internal section which means
that our coffee liquid layer will stay confined to this pink area of the cup. Then we have our
coffee top layer which is essentially a duplicate of our cup top layer which is an ellipse scaling
up with a size property and have its position just moving slightly upwards as well so it ends up in
the very center of that circle and that just gives a little bit of extra parallax during these
few frames while it's in transition. I'm also animating the scale property of the shape as well
so when it gets to this top down view it's going to continue scaling up very gradually to fill up
this entire shape and then quickly scale down and reveal this yin yang background that we've got.
Now if we look at this scale property in the graph editor you can see its scale starts at 100
and then creeps up very slightly until it reaches its peak here and then just quickly sort of
accelerates and scales down really fast and during that scale down is where we have this cup handle
disappear as well. You can see I've got a couple of keyframes with its path just sort of shrinking
into the mass of the cup. If you need to get rid of any elements in a transition you're doing it's
great to do it during the fastest movement where your eye is being directed towards another area.
If we go frame by frame you can see I have this path sliding in very slightly towards the cup but
because this movement is so fast and dramatic I think we could even get away with just cutting
away from that handle and not having it transition inwards at all. So there we have one cup rotating
in faux 3d space. Now let's go into the composition for the other cup which has all the milk and the
color changes inside. This composition was an exact duplicate so it has the exact same animation
with some additional elements added. This milk jug here is just that path that we've imported in from
illustrator and the only animation we've got on that is its position values and its rotation. That
way we've got it sort of swinging from the right pulling up and at the same time its rotation is
sort of making this top line sit absolutely vertical as it exits out the screen. And then
we've got our milk pour main layer here which is parented to that jug. Now this one in particular
could be done a variety of ways in After Effects and because this project is two years old I'm not
exactly sure that this is really the best way to do this but I have this anchor point attached to
the very top here. It scales all the way up to 200% as it gets longer so I'm increasing that scale to
make it pour down into the cup and then when the jug releases it I have its position sort of moving
downwards to fall into the cup. Then I have this mask here making it disappear as it enters with
a nice rounded edge and I've got these two layers on top and this first one is a circle with a mask
to create this sort of rounded edge as the milk pours and the second one is a smaller circle for
a rounded cap to this sort of milk pour which sort of follows it downwards into the coffee. Now this
section in particular looking back could have been done a lot more effectively with maybe just a
single shape layer and animating the path every few frames. I think striving for efficiency is great
I'm certainly much more of a stickler for that now than when I animated this but the result is really
what counts in the end. Sometimes you've got to hack a few shape layers together for a few frames
just to make it work and I think that's completely fine if you do that. And then I've got a duplicate
of that layer called a milk pour in coffee which is exactly the same but for when it appears inside
the coffee which is just has the darker fill on it. And then we've got our lighter coffee in coffee
layer down here which is sort of the milk as it appears inside the coffee and sort of has this
gradient as it pushes upwards. Now this took me a few times to get right. Originally I had the
gradient coming outwards from the top of the pour here which seemed intuitive at the time but it
just really didn't look right. So after watching some reference and kind of thinking about what
was wrong with it I discovered that you know the coffee is going to get lighter from the bottom up
as the milk sort of settles at the bottom and then dilutes upwards. So to animate the milk rising I
have this mask. Let's change the color to something pink so you can really see it. And that sort of
rises from the bottom and I just have two keyframes on that mask path and it goes from the bottom here
right to the top. And I've also animated the feather on that mask as well so it's a lot more
feathered as it starts diluting and less feathered when it's just first poured into the coffee here.
Now I've also added some keyframes to the fill effect here so it starts off being pure white
and then as it gets more diluted it becomes gray until the whole thing is this gray color here.
Also applied a fill effect to our coffee top layer here so that fades from black to white as well.
Now those little elements like the changing of the the fill and the gradient and where the
coffee rises up from, those aren't all essential elements but I really think that they add a lot
to the animation. They were by far my favorite things to animate and when looking back on it now
those are the little touches that I like the most and I think they really help sell the overall
animation. And here's what both cups look like in action and I've also keyframed the position
of both of these comps here. So the white comp moves down and the black comp moves up so they
end up diagonally sort of opposite facing each other. And here's what they look like in context
of the whole animation. Now that was a long time for me to explain one and a half seconds
of animation. Now you can see why I'm breaking this up into parts. Now next time, it may not be
next week, I'm probably going to do a few more tutorials in the meantime before we get back to
this project, but next time we do I'm going to cover this yin yang transition that we've got
going on here. But if you can't wait until then this project file is available for download down
in the description. Now if you use any techniques or processes from this video please tag me on
instagram at ben underscore married underscore because I'd love to see what you make. Please
let me know down in the comments if you'd like more of this series where we go in depth into a
very specific, very detailed, minute, the minutiae of an animation. I'd love to know what you think.
Please don't forget to subscribe, hit the bell icon, share and like as well. Thank you. I'll see
you next week.
