Skip to content

Commit 190b6cc

Browse files
Improve TabsPanel in and out animation (#30)
1 parent f9c4a73 commit 190b6cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui_parts/tabs_panel.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ func _ready() -> void:
1212

1313
func animate_in() -> void:
1414
var tween := get_tree().create_tween()
15-
tween.tween_property(self, "position:x", 0, 0.3).from(-200).set_ease(Tween.EASE_IN_OUT)
15+
tween.tween_property(self, "position:x", 0, 0.3).from(-200).set_trans(Tween.TRANS_CUBIC).set_ease(Tween.EASE_OUT)
1616

1717
func animate_out() -> void:
1818
var tween := get_tree().create_tween()
19-
tween.tween_property(self, "position:x", -200, 0.3).set_ease(Tween.EASE_IN_OUT)
19+
tween.tween_property(self, "position:x", -200, 0.3).set_trans(Tween.TRANS_CUBIC).set_ease(Tween.EASE_OUT)
2020
await tween.finished
2121
get_parent().hide()
2222

0 commit comments

Comments
 (0)