~かと{思|おも}えば/~かと{思|おも}うと
Just when you think …, …; some … while others …
N1
V-ta + かと{思|おも}えば / かと{思|おも}うと / ~かと{思|おも}えば~も
Vたかと{思|おも}うと says that right after one thing happens, something contrasting and surprising follows ({泣|な}いたかと{思|おも}うともう{笑|わら}っている). ~かと{思|おも}えば is also used to set two opposite phenomena side by side ({賛成|さんせい}する{人|ひと}がいるかと{思|おも}えば、{反対|はんたい}する{人|ひと}もいる). The subject is another person or a phenomenon, never the speaker's own action. It is close to ~たとたん (N3) but stresses a sudden, contrasting change. It is used in both writing and speech.
Examples
空が急に暗くなったかと思うと、激しい雨が降り出した。
No sooner had the sky suddenly darkened than it began to pour.
会議で積極的に発言する人がいるかと思えば、一言も話さない人もいる。
In meetings, some people speak up actively while others never say a word.
赤ちゃんは泣いていたかと思えば、もう笑っている。
The baby was crying a moment ago, and now it's already smiling.
Exercises
1.部長は会議室に入ってきた 、すぐにまた出ていった。
2.この町には新しいマンションが建つ地区がある 、空き家が増え続ける地区もある。