snap out of
snap out of {v.}, {informal}
To change quickly from a bad habit, mood, or feeling to a better one. — Often used with "it".
Mary was unhappy when her fiance abandoned her, but she snapped out of it when she met a new young man.
The coach told the lazy player to snap out of it.
Categories:
Source: A Dictionary of American Idioms