snap out of

Intermédiaire (B1) informal

To quickly stop feeling sad, daydreamy, or confused and start acting normally again.

"She had been staring at the wall for ten minutes before her friend told her to snap out of it."