We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd4f893 commit 4dd62c5Copy full SHA for 4dd62c5
taptapir.js
@@ -781,8 +781,26 @@ class Entity {
781
)
782
783
}
784
- shake() {
785
+ appear() {
786
+ let target_scale_y = this.scale_y
787
+ let target_scale_x = this.scale_x
788
+ let target_text_alpha = this.text_alpha
789
+ this.scale = [0,0]
790
+ this.text_alpha = 0
791
+ this.enabled = True
792
+ this.animate('scale_y', target_scale_y, .25)
793
+ after(.25, () => {
794
+ this.animate('scale_x', target_scale_x, .5)
795
+ this.animate('text_alpha', target_text_alpha, .25)
796
+ })
797
+ }
798
+ close() {
799
+ this.animate('text_alpha', 0, .25)
800
+ this.animate('scale_y', 0, .25)
801
802
+ this.animate('scale_x', 0, .5)
803
804
805
806
fit_to_text() {
0 commit comments