Created a callback function for 'toggleWindowShade' that runs after the animation is completed.