Use Keynote to Create a Scroll-Based Parallax Animation

NorthGrid
26 followers
12 Video Views·Oct 27, 2022
Today I want to show you a really cool trick I use for mocking up websites or
mobile app designs. For this trick I use Keynote. Keynote is a great tool for
mocking up different states of a flow. It has an animation preset called Magic
Move which is really useful. With Magic Move you can create different states of
a design and then Keynote will create animations between those states like
magic. Today I'm going to show you how to use Magic Move and Keynote to mock up
a parallax effect on a website. Just a disclaimer this is not a prototype since
you cannot really interact with it. This works more as a presentation. So that's
it. Let's get started. Let's start with a basic example so we can understand how
we can use Magic Move on Keynote. So I have here a demo of two screens. One
where it has a title, a text, and then one where it has different elements. So
we have a text field and then we have an iPad and an iPhone. So three elements
here. And now we want to animate them and we want to mock up an animation when you
scroll. A scroll based animation. So let's first, to the slides, we're going to
apply Magic Move. So we select them then we go to animate and then we add an
effect and we select Magic Move. And then we can change the duration here, probably
around one second should be good. You can play around with it. And then here on the
options you want to say Byte Object and Fade Unmatched Objects. So here if I
press play then I press and then it appears. It just like fades in, fades out.
So there's nothing really magically moving because the elements that are
here are not also here. The magic move of Magic Move makes when an element is in
both places then it creates a transition between them. So it creates from that is
here on the corner and in different state in a different slide if it's over
here then it creates that transition between those two. So let's actually do
that. And to do that I'm actually going to copy these elements. I'm going to copy
them and I'm going to go back to my first one and I'm going to paste them. By
pasting them now I can move them and say what is the starting state of these
elements. So I'm going to zoom out and I'm going to put them outside. I put them
outside now if I press play now it will create that scrolling animation. But if
we want it to be parallax then all we have to do is just change the Y position
of this elements. So for example these two I'm going to actually drag them a
little bit more and this one even a little bit more. That way it will create
an effect of each element it appears like it's in a different speed or it's
in a different depth. So let's actually preview this. Let's press play and now it
creates that really subtle effect of like some of the elements are a little
bit slower or appear that are a little bit closer. We can actually zoom out go
back and if we want it to be less subtle then all we have to do is just like move
them in the Y position even more further further more. And if we want to make the
iPhone to look up here a little bit closer then we have to make it look
super fast into it and to achieve that we actually just have to move it way way
far down in the Y position. So let's press play again and there you go. So now
we have it it's not as subtle as before it's a little bit more obvious that when
you scroll that happens. Something else that is going on is that the first text
which was scroll based animations this one it's just fading out. So you see it
just fades out and then the other elements appear. So we actually want it
to be also look like it's a scrolling right? So we have to go back here copy
this and do the same but in the opposite direction. So this one actually goes out
of the screen. So this is my starting point and here I'm actually editing the
exit of the exit state of this element. So now if we press play oops sorry let's
go back to the first slide press play sorry I have to select the first slide
and then press play and then there you go. Now it looks like it's scrolling
because that element is also exiting the screen and the other elements are
entering the screen. So that's pretty much it that's you can apply this same
principle to all your elements in your website. Now we're going to go through
through a demo of an actual website that I was working on it was a mock-up of a
website or we're working on carbon health my startup and I'm going to show
you how I accomplished one of the mock-ups it wasn't the final version of
it but it's a good starting it was a good starting point to get us to
understand how we wanted all those scroll based animations to look like. So
the first thing that I'm going to do is transfer my sketch file I'm going to go
back here this is the sketch file and I'm going to just copy and paste every
element into Keynote and the cool thing is that I can just select any of these
elements even if it's an image let me just turn off this even if it is an
image I can just let me create a new slide here you just paste it and Keynote
is really good at just like putting this as a PNG now it's an image it even copies
the shadow everything as long as you copy the individual elements that you
want to animate then Keynote will do a really good job at just putting them
here I can just for example all this paste it and now I have this this text
paste it copy it and paste it in it and I still have to arrange it here on
Keynote I wish there was a plug-in that actually just exported everything to
Keynote probably in different slides something but at the end you I don't
know it's a little bit of work just copying and pasting and rearranging them
again this is just a mock-up that gives you just an idea of how your animations
could look so it doesn't have to be perfect something that I forgot to tell
you is that on Keynote you want your let's create a new file when you're
preparing your file I'm going to select the default white on the white version
I'm going to choose it and then here you can actually change the size of your
artboard your document here you go to the slide size and then it here it has
a default size I don't really know what the size is but you can go to custom
slide size and well apparently it's 1920 for mine I'm actually going to change it
to 1640 by 18 by 960 or yeah 960 whatever your design you want it to look
like you just change it here and then now you're ready to copy paste your
elements from Sketch okay let's speed up this
okay so now I finished copying and pasting everything from Sketch into
Keynote by the way the Sketch file is also available for download on a link
below so just click on that link and you'll get this if you want to follow
along also the Keynote file is there if you want to see the finished product so
we have here our elements everything is here from the Sketch file I just made one
slide per section so the first section which is the hero is one slide this
section is the second section on the website is another slide and so on so
over here you're going to see each slide is one of the sections and usually
websites will have stuff like that where it's like a blog a section where it's
talking about something so if you want to mock up your website using Keynote
you'll want to think in that way so okay so we have all of this now we want to
apply magic move to all of your slides so I select all of the slides and I'm
going to apply animate add an effect and I'm going to select magic move and I'm
going to keep it at around 125 and that's it ease in and ease out that's
great and then on transition you can also set it automatically if you just
want it to move automatically with a delay but for us let's just put it on
click so we can actually control it so we have that everything is set and
that's it so now if I press play it would just fade out between the
screens because nothing is repeated so there's no really magic move happening
it's just fading in all the elements so to actually make the magic happen then
we have to actually copy and paste all the elements from each slide into the
next one and the previous one and so on so for example let's actually say how
these elements are going to animate when you scroll out so I'm going to copy
them and I'm going to go to my next slide and I'm going to paste them and
now that I'm here I'm just going to zoom out a little bit and then I'm going to
move them out move them out I'm going to put them to the back that way they are
behind these elements there you go around there so something that you will
notice is that I also put a white background this element on top of my
elements of these these little guys because I want to create an animation on
top of them and instead of masking them I just put that overlay of white where
and now I can move the elements and not fear that suddenly they will appear
somewhere that this is just going to block its movements it from view so over
here now to create the parallax effect all I have to do is change the Y
position so it's a little bit a little bit slower than everything else so I'm
actually going to move them like this and then if you want to appeal to make
make it appear like the what I call it the iPhone in the middle it's actually
appears a little bit closer to you then you actually move it a little bit more
like this that way it looks like it didn't move as much that it was a little
bit further like it was further away actually so and these ones I can
actually even rotate them if I wanted to I'm going to rotate them just so it
looks like it's rotating I'm going to rotate them just a little bit three
degrees four degrees in one side and then negative four degrees on the other
side there you go and now let's press play and see the magic happening oops I
have to go to the previous slide and then press play okay let's see how it
happens and there you go it was pretty simple but it works you can just like
fine-tune every little detail if you want to for example I can I'm going to
say that probably these elements move no you know I actually like that this one
is a little bit faster so I'm going to actually put it even like it's on top of
the elements and these probably they're further away so I'm going to make them
look a little bit slower so if we press play like now now it does that all these
is something that you can also recreate in other animation tools like principal
or flint oh but here it's just to make it really quickly and and just like
using keynote like to make a movie super quickly just another way of doing this
so now I have to do I have to actually copy these elements and put them in the
previous screen so I can animate how they're going to get in the screen so
I'm going to copy these I'm going to go to my previous screen and then move them
outside now that they're outside I can change the Y position of them just like
that I'm going to make this one move a little bit faster because it's probably
a little bit closer to you so I'm going to make it a little bit faster just like
that way way faster and now let's press play and see how it animates there you
go that's pretty cool right that that's why it's called magic move because it
just connects the elements that are repeated and just creates a transition
between them so I'm going to do this copy going to go to the next one paste
and it just move it outside and then I'm going to move it at different speeds at
different rates so this one the one that is closer to you moves a little bit
faster so it's obviously a little bit further away to zoom out by the way you
use pinch gesture to zoom in and zoom out that's what I'm doing to zoom in and
zoom out okay so that is there and now I want to actually copy these elements and
see how they enter the screen so I'm going to paste them here and this is
going to be pretty fun because it's three elements it's three cards so I can
say that probably these elements are a little bit closer to you so they have to
move a little bit faster right so I'm going to move them even further away
just like that so now let's press play and test this so the elements exit the
screen and then these elements just enter the screen something that happened
here is that the background just faded in so what I have what I can do is also
copy the background and make it look like it's moving with the background so
I copy it here I paste it over here and then I put it just behind everything I'm
going to move it to the back and now the background should also move instead of
just fading in if you like fading in you can do that too there you go so now the
element the background just moved in okay so now I'm going to just fast
forward everything so you don't have to see this it's just the same principle
copy and paste from one place to another and just move the elements in the Y
position and then creates this parallax effect then I'm going to stop it to see
the final effect okay okay so now I'm ready I copied and pasted everything
from the sketch file and I also copied and pasted from the different slides to
mimic how the elements are going to exit and enter the screen so if you see here
I see the elements here are here have the the previous slide and the next
slide here have the previous slide and the next slide here and the same here
and the same here so let's press play and see it so just go a nice parallax
effect the next slide all the cards appear at different speeds and then they
exit at different speeds the iPad and the iPhone and the text they all have
different speeds it looks like it has like different depth some of the
elements appear closer to you and then at the end just the CTA it looks like
the CTA I didn't copy and paste it the actual element so apparently I have to
copy this background paste it here and then put it all the way to the top and
then send it to the back and now instead of the background fading out it should
move there you go so that's it it's really simple it's uh it's it's great
for small things I wouldn't create a really complex thing with this I mean
for that I will probably invest my time on an actual prototype this is again
this is just when you want to put something quickly together and just want
to show your teammates or anyone just like how something could look like an
scroll-based animation could look and you can use the same principle back
magic move not just for parallax effects but you can also say like for different
states of a button of elements that appear that appear from the right left
or whatever whatever you want just using magic move will create that animation
for you oh sorry I forgot something else that I
didn't tell you is it you can also export this as a movie so you can go to
file and then export to QuickTime and then you can say you can say 1080p or
720 whatever the resolution you want you can also use use custom and then you can
say what is the after each transition how many seconds do you want it to wait
and then it will make the video with that so we usually do like two seconds
after each slide and then you can also build I usually set at zero seconds so
it just goes fast and that's it and self playing yeah because it's a video
right and then you just export it and then exports this as a video so that's a
nice trick when you just want to share your prototype with someone else your
mock-up with someone else so that's it I hope you find this useful
keynote is free so that's actually pretty good too you don't have to buy
anything else for this and that's it thank you so much have a good one
