Hi!
I would attach a script to the colour rect, initiate the onButton_pressed() signal from the Button, connect it to the colour rect script and start it's animation with animationplayer from the connected function in the script with code.
Something like this (only illustration):
func _on_Button_pressed():
$AnimationPlayer.play(...)