かと思うと
Meanings
1
no sooner than; as soon as; immediately after
Used after the past tense of a verb to express that something happened right after another action, often with a sense of surprise or unexpectedness.
No sooner had I left the house than it suddenly started raining.
He came home, but immediately went out again.
2
at the thought of; when I think about
Expresses a feeling or reaction that arises just by thinking about something. Often used with emotions like sadness, worry, or excitement.
My heart aches at the thought of that.
When I think about tomorrow's exam, I can't sleep.