Deactivates the widget, reverting to its original visibility and stopping the animation if it was running.