How to elegantly animate the background color transition of a Godot button

Godot Version

Replace this line with your Godot version
v4.4.dev7.official [46c8f8c5c]

Question

Ask your question here! Try to give as many details as possible
I want to make the background color change when the mouse is pressed, but it is difficult to achieve this function with Godot native buttons. How can I do it? I don’t know whether I need to animate the normal style, focus style, or hover style.

just use input event

There is a pressed StyleBox that you can change.