The hamster in this GIF is a victim of the law of conservation of momentum. The girl places the hamster on the ball and then bounces it. In this way, the ball gains momentum. However, this is the initial momentum. The final momentum after collision i.e., when ball touches the floor is equivalent in magnitude and opposite in direction. So the hamsters rises in the air in a direction oposite to the ball.