Animations

Using Hover and Press Effects in Framer (Animation Lesson 2)

Using Hover and Press Effects in Framer (Animation Lesson 2)

Using Hover and Press Effects in Framer (Animation Lesson 2)

Joseph

·

5:42

·

37K views

·

About this lesson

Let’s start with the basics — how to make things feel alive when visitors interact with them. Hover and press effects are small touches that make a big difference — by giving visitors tangible feedback that makes it super clear if something is clickable in the first place — and if they’ve clicked it successful. In this lesson, we’ll walk through how to create these two effects in Framer in just a couple of clicks.

Grab the remix link here: https://www.framer.com/academy/lessons/framer-animations-hover-and-press-effects

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=0s Intro

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=5s Why hover and press effects matter

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=19s Jumping into the Framer project file

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=43s Starting with the hover effect

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=62s Choosing and previewing hover settings

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=96s Adjusting transition with spring physics

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=150s Finalizing hover effect settings

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=174s Previewing the hover effect

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=195s Introducing press effects

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=219s Adding a press effect in Framer

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=235s Scaling for a pressed state

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=255s Matching spring settings to hover

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=266s Previewing the press effect

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=279s Adding rotation to the press effect

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=301s Final preview with rotation and scale

https://www.youtube.com/watch?v=ZzK8E-qEwo8&t=356s Wrap-up

Sign up: https://framer.link/yt

Follow: https://framer.link/yt-x

Learn: https://framer.link/yt-academy

0:00Let's start with the basics. How to make0:02things feel alive when visitors interact0:04with them. Hover and press effects are0:07small touches that make a big difference0:09by giving visitors tangible feedback0:11that makes it super clear if something0:13is clickable in the first place and if0:15they've clicked it successfully. In this0:18lesson, we'll walk through how to create0:19these two effects in Framer in just a0:21couple of clicks.0:26To get us started, I'm going to jump0:27straight into our project file here,0:29which you'll find if you're watching0:30this video on framer.com/academy0:34right below the video. I'll include a0:35remix link there for you. If I scroll0:37down in this project file, you can see0:39that I've got some examples here for us0:41to work on. And we're going to start0:43with hover. So, to add the hover effect,0:45I'm going to select this layer. And this0:47layer is just a frame with an image0:49fill. And I'm going to head over here to0:50the properties panel and head down to0:53effects. Now, when you click here to add0:55an effect, you'll find that there are0:56quite a few of them. And by the end of0:58this course, you'll be familiar with0:59every single one of them. But for now,1:01we're going to start with the hover1:03effect. And when I add the hover effect,1:05I get this little modal where I can1:08choose how I want this layer to appear1:11when the cursor is hovered over it. So,1:13what we're seeing on the canvas here is1:15a reflection of the settings that we1:18modify here in the modal. So, for1:20example, if I bring our scale up to 1.3,1:23you can see that it's now 1.3 times the1:26size that it was before on the canvas.1:29But we're only seeing that on the canvas1:30because we have the hover effect modal1:33open. So, we can preview the effect that1:35we're creating as we create it. I could1:38also set an offset if I want to and have1:40the layer move on hover. I could have1:42the layer rotate a little bit on hover.1:45And let's actually do that just to make1:46it more obvious, make it more drastic. I1:49can play with the opacity. You can see1:50all the properties here that we have to1:52play with. And then finally, we have the1:55transition, which determines how the1:57movement actually happens. Now, the next2:00lesson is where we're really going to2:02get into transitions and master the2:04different easing curves that we have2:05available to us. So, stay tuned for that2:08one. But for now, we'll probably just2:10stick with a basic spring. I'll set this2:12to a physicsbased transition. And uh I'm2:16going to bring down the stiffness quite2:18a bit here to sort of let this thing2:20wiggle. And I'll bring the mass up a2:23little bit. And again, we're going to go2:24over all of this in the next lesson. So2:27don't worry too much about what all2:29these properties mean cuz we're going to2:30go through them one by one. But now,2:32essentially, we've decided that on2:34hover, we want this layer to grow to 1.32:37times its original size or 130% is2:40another way to describe that. And we2:41also want it to rotate 20°. And we also2:44have a toggle here between 2D and 3D2:46rotation. I'm going to stick with 2D for2:48now, just so we rotate on that Z-axis2:51only. But really, the fun comes from2:53previewing this. So, I'm going to close2:55the modal. I'm going to press command P2:57on my Mac to go into preview mode here.2:59And we'll scroll down and find that3:01layer. And when I hover over it, there3:02we have it. It's doing that spring3:04effect. And it's returning back to its3:07default position when I'm no longer3:08hovered over it. So, on hover, we get3:10that transform that we created. And when3:12we hover away, it goes back to normal.3:15It's that simple. Press is very similar,3:19except the triggering action is going to3:21be clicking down the mouse button or3:23pressing with our finger on mobile3:25instead of just hovering the cursor over3:27it. And naturally, hover is specific to3:30desktop where we actually have a cursor,3:32whereas press applies to both desktop3:35and mobile. So, I'm going to go back to3:38our design canvas here. I'm going to3:40select this layer and I'm going to go3:42back to the effects section on the3:43properties panel. I'm going to click and3:45this time I'm going to choose to add a3:47press effect. So in this case the3:50defaults are a little bit different.3:51You'll notice that it's scaled to 0.9.3:53It actually scales down instead of up by3:55default. And that's to kind of give the3:57effect of pushing the thing in. It's3:59pushing away from us. So it's getting a4:01little bit smaller. So I'm going to run4:02with that. I'm actually going to let4:04that scale down to 0.8 or 80% of its4:07original size. And uh I'm going to leave4:09these things alone for the most part4:11except maybe the spring. Maybe I'll set4:13the spring to similar settings that I4:15did for our hover here, which I believe4:17was around 200 for the stiffness.4:19Damping I think I left at 30. And mass4:21I'm going to double to two. And again,4:24I'll dismiss that modal. I'll press4:25command P to go into preview mode here.4:27And now when I hover, nothing cuz again,4:30we set this interaction to be on press.4:32When I click, there we go. When I click,4:35we see that effect taking place. And I4:38think in my example, I had this rotating4:4090 degrees as it pressed as well, which4:42I thought was kind of a cool effect. So,4:44at any time, we can select this layer4:45again. We can go back to the effect4:47modal here, and we can say, yeah, let's4:50rotate this 90° as well. And let's see4:54what that looks like. Again, command P4:56on my Mac to go into preview mode.4:57Control P if you're on a PC, by the way.4:59And there we go. Now, we've got that5:01rotation happening with the scale as I5:03press. And hover again happens as soon5:06as the cursor mouses over it. And there5:09you have it. With hover and press5:11effects in place, your sites will5:12immediately feel more tactile and alive.5:15And they don't just make an experience5:17more visually delightful. These effects5:19are subtle cues that help visitors5:21navigate with even less effort. Again,5:24great interactions aren't just about5:26motion. They're about meaning. That's it5:28for this one. I'll see you in the next5:30one.

Watch on YouTube ↗

More in this topic

Framer Update: Logo Shaders2:05
Framer Update: Logo Shaders
Framer Update12K views · 1 month ago
Framer Update: Holo Shader1:46
Framer Update: Holo Shader
Framer Update6K views · 2 months ago
Shader: Chromatic Aberration1:56
Shader: Chromatic Aberration
Framer Update7K views · 2 months ago
Framer Shaders2:28
Framer Shaders
Announcement23K views · 2 months ago
Framer Update: Flow Effect in Layout Templates2:12
Framer Update: Flow Effect in Layout Templates
Framer Update10K views · 3 months ago
Building an Expanding Article Stack in Framer13:14
Building an Expanding Article Stack in Framer
Animations4K views · 4 months ago
Scaling a clipped image on hover in Framer5:41
Scaling a clipped image on hover in Framer
Animations7K views · 5 months ago
Making elements revolve in Framer3:38
Making elements revolve in Framer
Animations5K views · 5 months ago

Create a free website with Framer, the website builder loved by startups, designers and agencies.