Fetching details from the dictionary...
to go by; to cross; to pass by; to flash across
不安ふあんな考えかんがえが頭あたまをよぎった。
An anxious thought crossed my mind.
彼女かのじょの顔かおが心こころをよぎる。
Her face flashes across my mind.
不安ふあんが心こころをよぎる夜よるだった。
It was a night when anxiety crossed my mind.