Hover state resetting too early

Hey all,

I just started out using Figma. I stumbled upon a problem with the hover interaction and I feel like it’s due to how I setup my project. Please don’t mind the styling and layout, I’m just trying to test the prototyping function.

Link to prototype: https://www.figma.com/proto/Djk6hpxlDubWcKWT8GM8Ln/Untitled?type=design&node-id=1-2&t=5PtwsjsYHfIIak38-0&scaling=contain&page-id=0%3A1&starting-point-node-id=1%3A2

Link to design file: https://www.figma.com/file/Djk6hpxlDubWcKWT8GM8Ln/Untitled?type=design&mode=design&t=aGsyBpD3nt9pj9a6-0

What I would like to do: Make the section that is being hovered over expand and from there on have the ability to hover over the “shrunken” items and make them expand as well and have the other two items shrink

What I currently have: Sections are expanding properly but only as long as I stay inside of the original shape’s dimensions which the hover interaction has been applied to.

Due to this it’s kind of “skipping” when transitioning between two of the sections.

Hopefully some of you kind people can help me with this. Furthermore, it is my first time posting here so if there are any issues with how I phrased my question / created the topic please let me know.

Thanks in advance :slight_smile:

While hovering will use the bounds of the original element, as you’ve noticed. Use mouse enter to navigate to the other pages, combined with mouse leave to go back to the first page.

Here’s an example (you can open it and inspect the design):

Thanks a lot for the lighting fast reply. That worked like a charm and I’m now pretty close to a satisfying result.

One more thing that is still kind of not working out and I’m not sure if there is a solution for it: If I try to go from the first to the second section it instead skips the second one and goes straight to the third. This is probably due to the fact that after leaving section 1, it resets to frame 1 (the “overview”) and in this frame my mouse cursor is hovering over the third section, hence it is expanding this section.

The updated version can be found here: https://www.figma.com/proto/Djk6hpxlDubWcKWT8GM8Ln/Untitled?type=design&node-id=1-2&t=0zOqrt5OBv8sY25T-0&scaling=contain&page-id=0%3A1&starting-point-node-id=1%3A2

Thanks again to anyone who takes the time to reply. :slight_smile:

Your observation seems accurate. To solve this, you can wrap all of the sections in a container (like I’ve done in my example), and put the mouse leave interaction on the container instead. This way, it won’t reset when moving the mouse across the sections. You will however also need to add mouse enter interactions to the other sections on all pages (not only the first page).

1 Like

Once again, thanks a lot. Adding the mouse enter to the other shrunken sections should have been an obvious step and seems to have solved the problem by itself.

Now it is only the smart animate function that is acting weird. Although it is probably working as intented and I’m just using the wrong tool for my particular use case.

I’m going to have to look for a way to apply a different interaction to my text + buttons (something like dissolve) that is linked to the hovering interaction of my sections so the section rectangles are smart animated and the text just appears inside the appropriate section.

I’m going to explore some solutions myself before I can justify asking for help again.

Edit: Putting all items in the same group of the section seemed to have solved the problem. Thanks again! :slight_smile:

1 Like