Smart animate while hovering

Hello, community!
I have created a component containing different states for a menu item. I want to have a small rectangle on the left side of the item that stays visible when the page is active but most importantly to smart animate on hover over the other items in the menu. The animation is simple: the rectangle has a width of 0px when is not hovered and 10px width on hover. The problem is that whenever I hover over the item, the width of the rectangle is instantly 10px width and when I stop hovering, it is animating the width of the rectangle.
Thank you in advance for the possible answers!

Hi there,

Thank you for reaching out and sending over the file. I’ve taken a look at your layer and tried to replicate the process using my simplified sample. Everything seems to be working on my end, as you can see in the attached video.

Just a quick tip: when creating frames for smart animate, you can simply duplicate them. This helps maintain consistent naming across each frame. You can then add or remove layers to each frame as needed. Here’s a helpful link that explains how to do this: https://help.figma.com/hc/en-us/articles/360039818874-Smart-animate-layers-between-frames

Could you give it another try and let us know if it works?

If you have any further questions, please let us know!

Thanks,
Toku

1 Like

Hello!
Thank you for reaching back to me. I have reproduced the steps from your video and it works as intended. I don’t know why my original design is not working. I have checked and the frames are in the same order. The things is that the original idea was to have a background on the menu item, not a rectangle on the left side and I think that adding the rectangle did something something with my arrangement of the frames.
Thank you so much for your help! Keep up the good work!