Move mouse show and hide to transition functions.