src/c/main.c
void makeScrollUpNow(){
  GRect from = layer_get_bounds((Layer *)scroll);
  GRect to = layer_get_bounds((Layer *)scroll);
  GRect rect = layer_get_bounds((Layer *)scroll);
  if(rect.origin.y == 21){
    from.origin.y = 0;
    to.origin.y = -21;
  }
  else {
    from.origin.y = 21;
    to.origin.y = 0;
  }
  scroll_down = property_animation_create_layer_frame((Layer *)scroll, &from, &to);
  animation_set_duration(property_animation_get_animation(scroll_down), 800);
  animation_set_curve(property_animation_get_animation(scroll_down), AnimationCurveEaseOut);
  animation_schedule(property_animation_get_animation(scroll_down)); 
}
//////End Function ///
////Init: Animations procs//
End Function
Init: Animations procs
End Function Init : Animations procs
void makeScrollUpNow(){
  GRect from = layer_get_bounds((Layer *)scroll);
  GRect to = layer_get_bounds((Layer *)scroll);
  GRect rect = layer_get_bounds((Layer *)scroll);
  if(rect.origin.y == 21){
    from.origin.y = 0;
    to.origin.y = -21;
  }
  else {
    from.origin.y = 21;
    to.origin.y = 0;
  }
  scroll_down = property_animation_create_layer_frame((Layer *)scroll, &from, &to);
  animation_set_duration(property_animation_get_animation(scroll_down), 800);
  animation_set_curve(property_animation_get_animation(scroll_down), AnimationCurveEaseOut);
  animation_schedule(property_animation_get_animation(scroll_down)); 
}
void makeScrollUpNow ( ) { GRect from = layer_get_bounds ( ( Layer * ) scroll ) ; GRect to = layer_get_bounds ( ( Layer * ) scroll ) ; GRect rect = layer_get_bounds ( ( Layer * ) scroll ) ; if ( rect . origin . y == 21 ) { from . origin . y = 0 ; to . origin . y = -21 ; } else { from . origin . y = 21 ; to . origin . y = 0 ; } scroll_down = property_animation_create_layer_frame ( ( Layer * ) scroll , & from , & to ) ; animation_set_duration ( property_animation_get_animation ( scroll_down ) , 800 ) ; animation_set_curve ( property_animation_get_animation ( scroll_down ) , AnimationCurveEaseOut ) ; animation_schedule ( property_animation_get_animation ( scroll_down ) ) ; }
End Function
Init: Animations procs
End Function Init : Animations procs