A
A
andrewgenteam2020-11-19 23:07:14
Figma
andrewgenteam, 2020-11-19 23:07:14

How to change button style in Figma after clicking on it?

There is a button in the project in Figma, how to make it so that after clicking on it, it changes its color? Tell me please.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Figma-designer, 2020-11-20
@Figma-designer

In a prototype? Use swap with. You will need a second button with the style already changed, with which you will swap them.

A
Anastasia Svezhentseva, 2020-12-03
@NewWingsAsya

You can change the style of the button after clicking on it in the Figma prototype using the Open Overlay setting:

  1. Let's place the button for the "after click" state on a separate artboard, in my example it is a button filled with color. Artboards with element states can be placed above the corresponding artboard where they should appear so as not to interfere with the screens of the main scenario.
  2. On the artboard with the design for the button, add on-click interactivity (On Click) and select the Open Overlay option so that the artboard with the filled button appears on top of the design: On Click → Open Overlay → Frame 2
  3. In the Overlay settings, select the type of positioning for the appearance of the element - Manual (manual setting) , move the button until it takes the right place after it appears on the artboard.
  4. Now we set up a reverse transition in the prototype: by clicking on the filled button (it is placed separately in the artboard), we go to the main artboard with the design. On Click → Navigate To → Frame 1
  5. Press play and see how the prototype works

5fc8bc052c60b475042547.gif

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question