in godot 3 it was very simple but it seems to have been changed in godot 4

in my code the connect function does nothing

`@onready var animation = $fade/fadeanim

func _process(delta):

if Input.is_action_just_pressed("click"):
	$fade.show()
	animation.play("fadeout")
	
	animation.connect("animation_finished", _on_animation_finish)
	
if is_hovered():
	$AnimationPlayer.play("rainbw_strt")

if not is_hovered(): 
	$AnimationPlayer.play("white")

func _on_animation_finish(fadeout):
get_tree().change_scene_to_file("res://node_3d.tscn")`