Figma Hover Effects: How to Make Them
In this article
To make a hover effect in Figma, you use the Prototype tab to connect a frame to itself or to another frame, then set the interaction trigger to “While Hovering” or “On Hover.” This creates a state where the design changes—like a color shift, a lift, or a tooltip appearing—when the cursor is over the element.
What a Hover Effect Actually Is in Figma
In Figma, a hover effect isn’t a single button or a CSS-style property you toggle. It’s a prototype interaction between two design states. You design the “normal” state on one frame and the “hovered” state on another frame (or on a variant of the same component), then link them with a trigger. When you preview the prototype, moving your cursor over the hotspot switches to the second state; moving away switches back.
This is different from how hover works in code. In CSS, :hover is a pseudo-class that applies styles instantly. In Figma, you are simulating that behavior for demonstration or user-testing purposes. The effect only appears in Presentation view or when you share a prototype link—it does not affect the static design canvas.
How to Create a Basic Hover Effect: Step by Step
- Design the normal state. Create a frame (for example, a button) with its default fill, text, and shadow.
- Create the hovered state. Duplicate that frame (Ctrl/Cmd + D) and change its appearance—darker fill, added shadow, slightly larger size, or a different text color. Keep the same dimensions if you want a smooth transition; if you change size, the animation will scale.
- Open the Prototype tab. It’s in the right sidebar, next to Design and Inspect.
- Select the normal-state frame. Drag the circular “+” handle from the right edge of the frame onto the hovered-state frame.
- Set the trigger. In the interaction panel, change “On Click” to “While Hovering.”
- Choose the animation. Set “Smart Animate” for smooth transitions, or “Instant” for a snap change. Set a duration (200–300 ms is typical).
- Preview. Click the Play button in the top-right to test. Move your cursor over the button in the preview window.
For a component (like a button you reuse), use variants instead of separate frames. Create a variant called “Hover” with the changed styles, then add the interaction from the “Default” variant to the “Hover” variant with the same “While Hovering” trigger. This keeps your design system clean.
Choosing Between “While Hovering” and “On Hover”
Figma offers two hover-related triggers, and the difference matters:
- While Hovering: The animation plays when the cursor enters, and reverses when the cursor leaves. Use this for most effects—color changes, shadows, scale-ups, underlines.
- On Hover: The animation plays once when the cursor enters, but does not reverse when the cursor leaves. Use this for a tooltip that stays visible, or a one-way state change you don’t want to undo automatically.
For a tooltip that appears on hover and disappears when you move away, you actually want “While Hovering” on the tooltip’s parent, not “On Hover.” Test both to see which feels right for your use case.
Common Problems and How to Fix Them
The hover effect doesn’t trigger. The most common cause is that the hotspot (the frame with the interaction) is too small, or another invisible frame is on top of it. Check the Layers panel—if an overlay or a background rectangle sits above your button, the cursor will hit that instead. Move the button to the top of the layer order or make the hotspot larger.
The animation jumps instead of smoothing. Smart Animate works best when the two frames have the same layer structure and matching layer names. If you renamed a layer in the hovered state, Smart Animate can’t match them and falls back to a crossfade. Keep layer names identical between states.
The effect works in preview but not in the file. That’s expected. Hover effects are prototype-only. If you need to show a hover state in a static presentation, you’ll have to manually show the hovered frame or use a comment.
Hover works on the frame but not on a child element. The trigger applies to the entire frame you attached it to. If you want only the text to change color, you must create the interaction on the text layer itself, or use variants where the whole button changes.
Designing Good Hover Effects: What to Change
A hover effect should give feedback, not distract. The most effective changes are subtle and immediate:
- Color: Darken or lighten the fill by 10–20%. Avoid hue shifts that look like a different button.
- Shadow: Add a drop shadow or increase its blur and offset to suggest the element is lifting.
- Scale: Increase size by 2–5%. Use Smart Animate with “Scale” or “Ease Out” for a natural feel.
- Border or underline: For text links, add an underline or change the text color.
- Cursor change: Figma doesn’t let you change the cursor in the prototype, so don’t try—it’s a limitation.
Keep the duration between 150 ms and 300 ms. Faster feels snappy; slower feels sluggish. Use “Ease Out” for entry and “Ease In” for exit if you want a more polished motion.
Hover Effects on Images and Cards
For image cards, a common pattern is to show an overlay with a title and a “View” button on hover. To do this:
- Create a card frame with the image and no overlay.
- Duplicate it and add a semi-transparent dark rectangle over the image, plus the text and button.
- Set the interaction from the first card to the second with “While Hovering” and Smart Animate.
For a zoom effect on the image itself, change the image’s scale inside the hovered frame (e.g., from 100% to 105%) and make sure the frame has Clip content enabled so the image doesn’t overflow.
Frequently Asked Questions
Can I make a hover effect without the Prototype tab?
No. Hover interactions only work in prototype mode. If you need to show a hover state in a static file, you can create a separate frame or use the “Variant” property, but it won’t respond to the cursor until you enter Presentation view.
Why does my hover effect only work once?
If you used “On Hover” instead of “While Hovering,” the animation plays once and doesn’t reverse. Switch the trigger to “While Hovering” if you want it to repeat every time the cursor enters and leaves.
Can I use hover on a text link inside a paragraph?
Yes, but you need to make the text layer itself the hotspot. Select the specific text layer, add an interaction to a hovered version of that text (with a different color or underline), and set the trigger to “While Hovering.” The rest of the paragraph stays static.
Does Figma export hover effects to CSS or code?
No. Figma’s Dev Mode can show you the CSS for a frame’s static styles, but hover interactions are not exported as code. Developers must implement hover effects manually in CSS or the framework they use.
Why is my hover effect not working on a component instance?
Interactions are defined on the component’s variants, not on the instance. Open the main component, add the hover interaction between its variants, then update the instances. If you add an interaction to an instance directly, it works only for that instance, not the component.
Can I make a hover effect that changes the background of the whole page?
Yes. Create a second frame with the same dimensions and a different background color, then attach the interaction from the original frame to the new one with “While Hovering.” The entire frame becomes the hotspot, so moving the cursor anywhere on the page triggers it.