Code to move animations up and down