Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def on_touch_move(self, touch):
- if touch.y > self.touch_pos_y:
- if self.anim_search_direction == 'up':
- self.anim_search_direction = 'down'
- anim_s_h_u_1 = Animation(opacity=0, duration=.6, t='out_expo')
- anim_s_h_u_2 = Animation(height=sp(40), duration=.6, t='out_expo')
- anim_s_h_u_3 = Animation(height=sp(40), duration=.6, t='out_expo')
- anim_s_h_u_4 = Animation(height=sp(40), duration=.6, t='out_expo')
- anim_s_h_u_1.start(self.a)
- anim_s_h_u_2.start(self.b)
- anim_s_h_u_3.start(self.c)
- anim_s_h_u_4.start(self.d)
- elif touch.y < self.touch_pos_y:
- if self.anim_search_direction == 'down':
- self.anim_search_direction = 'up'
- anim_s_h_u_1 = Animation(opacity=1, duration=.6, t='out_expo')
- anim_s_h_u_2 = Animation(height=sp(66), duration=.6, t='out_expo')
- anim_s_h_u_3 = Animation(height=sp(80), duration=.6, t='out_expo')
- anim_s_h_u_4 = Animation(height=sp(66), duration=.6, t='out_expo')
- anim_s_h_u_1.start(self.a)
- anim_s_h_u_2.start(self.b)
- anim_s_h_u_3.start(self.c)
- anim_s_h_u_4.start(self.d)
Add Comment
Please, Sign In to add comment