#Show/Hide another component on click event

4 messages · Page 1 of 1 (latest)

lavish atlas
#

Can you elaborate a bit on what you mean by “but I personally want to show/hide…so it’s not the same component”.

Are you wanting there to be an image and then tapping a button makes the image hide? Or is there a different interaction you’re after exactly?

lavish atlas
#

But you dont want it to be a component? is that correct?

I was going to say, just make the component plus a hidden image variant and smart animate it. But not sure if youre saying you dont want it to be a component.

#

is it just one image you are wanting this to happen with? Or are you wanting the one button to trigger a show/hide for multiple images?

slim forum
#

Hey @rare jetty ! You can still make it on the free plan, though i can definitely see how with the pro features it could be nicer.

You woulld need to make what @lavish atlas has described basically.

Make a component set with two variants, one where there is the text + button, and another that has the images + button. Add an interaction between them with an on click interaction from the button. And then take an instance of the first variant and paste it on your portotype frame.