Guest User

Untitled

a guest
Nov 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. def on_touch_move(self, touch):
  2. if touch.y > self.touch_pos_y:
  3. if self.anim_search_direction == 'up':
  4. self.anim_search_direction = 'down'
  5. anim_s_h_u_1 = Animation(opacity=0, duration=.6, t='out_expo')
  6. anim_s_h_u_2 = Animation(height=sp(40), duration=.6, t='out_expo')
  7. anim_s_h_u_3 = Animation(height=sp(40), duration=.6, t='out_expo')
  8. anim_s_h_u_4 = Animation(height=sp(40), duration=.6, t='out_expo')
  9. anim_s_h_u_1.start(self.a)
  10. anim_s_h_u_2.start(self.b)
  11. anim_s_h_u_3.start(self.c)
  12. anim_s_h_u_4.start(self.d)
  13. elif touch.y < self.touch_pos_y:
  14. if self.anim_search_direction == 'down':
  15. self.anim_search_direction = 'up'
  16. anim_s_h_u_1 = Animation(opacity=1, duration=.6, t='out_expo')
  17. anim_s_h_u_2 = Animation(height=sp(66), duration=.6, t='out_expo')
  18. anim_s_h_u_3 = Animation(height=sp(80), duration=.6, t='out_expo')
  19. anim_s_h_u_4 = Animation(height=sp(66), duration=.6, t='out_expo')
  20. anim_s_h_u_1.start(self.a)
  21. anim_s_h_u_2.start(self.b)
  22. anim_s_h_u_3.start(self.c)
  23. anim_s_h_u_4.start(self.d)
Add Comment
Please, Sign In to add comment