-
Make a button and another instance of it thats in the hover state
-
Make a text that you want to appear
-
Go to prototype mode
-
Connect the default to the hover button
-
Set to: On hover, navigate / change to (depending on if its a variant component or not)
-
Connect the hover button to the text
-
Make the interaction into “on hover” and open overlay. Change the position to manual to decide where the text would show up
#Prototype Mode Question
13 messages · Page 1 of 1 (latest)
I think instead of overlay, clip content frame would be a better option?
Animation will be more smooth.
Oh yeah that can work too. I guess it depends on what you want the surrounding behavior to be in a way
And how you would want to code it
In a way
Have the text in a frame both with the default and hover buttons each. But on the default button make the frame cut it out and bit click on clip content on the top right corner.
Pros: you have one less interaction to make
Cons: might not be very good if you dont normally want a text to appear on hover buttons, but just in one instance
Also imo it is less convenient to code (at least for me)
I'd recommend learning figma first, just keep playing with the tools & you'll know what & how it works.
Option 1:
default button has no text, and other button has text with a frame. Put a hover interaction between them
Option 2:
have the text layer in a frame with each of the buttons, have the text in the default button not visible
Interaction:
default -> hover: while hovering, navigate to
Option 3:
In this one you don't need to make the text in the default button invisible, but you need to resize the frame that the button and the text is in. and then check the "clip content" checkbox on the right top.
I second this, and there are also many videos online. If you just type in stuff into youtube it has a lot of resources. eg. how to make a hover interaction, how to clip contents, how to make an infinite marquee
And there is a lot in figma that translates well to coding and vice versa, so hopefully knowing how to code can help you also 🙂