@@ -70,8 +70,14 @@ def gotoDemo(sender, data):
7070#-----------------------------------------------------------------------------
7171
7272def demo_position (sender , data ):
73+
74+ # default values
75+ delete_item ("pos_info" )
76+ add_text ("pos_info" , default_value = "Animations can be stagged,\n individual values will add up" , parent = "Position Demo" , before = "spacing" )
7377 set_window_pos ("Position Demo" , 1500 , - 100 )
78+ animate .add ("opacity" , "Position Demo" , 0 , 1 , [.51 ,.05 ,.5 ,.9 ], 1 )
7479 show_item ("Position Demo" )
80+
7581
7682 # animations overlapping in time adding up their values
7783 animate .add ("position" , "Position Demo" , [1280 , - 100 ], [200 ,- 100 ], [.51 ,.05 ,.5 ,.9 ], 600 )
@@ -308,7 +314,7 @@ def loop_close(sender, data):
308314
309315
310316
311- # Startup Animation
317+ # Start Animation
312318animate .add ("position" , "Demo" , [622 ,800 ], [622 , 304 ], [0 ,.06 ,.2 ,.99 ], 60 )
313319animate .add ("opacity" , "Demo" , 0 , 1 , [.57 ,.06 ,.61 ,.86 ], 60 )
314320animate .add ("size" , "Demo" , [36 ,32 ], [156 ,32 ], [0 ,.99 ,.47 ,1 ], 30 , timeoffset = 1.5 , callback = show_buttons )
0 commit comments