Close timelines on exit viewport

You probably can do something similar to this but close the text box