Hey there. I have a query about a module Iโm designing where there are two buttons to select from. I want to be able to change the default background to a specific image when either button is hovered over. Is this achievable? Can anyone help?
Page 1 / 1
Hi @Bilal_Padia
I have a working solution that need a component modification, so maybe itโs note for you
I added a rectangle (img bg
) with:
- an absolute position
- constraint set to left and right and top and bottom (so it always cover the entire button)
When button is in its default states (hovered=false on the image below) I setimg bg
โs opacity to 0. When button is hovered, opacity is then set to 1
Since img bg
layer is always displayed on the instance (regardless of it state) you will be able to set an image as its fill and it should work just fine
Let me know if it works for you
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.