expression, conjunction
Literary or formal expression used after a verb to describe a hypothetical or metaphorical situation. Often interchangeable with かのように, but かの如くに can sound more classical or written.
See also: かのように
彼は何も知らぬかの如くに振る舞った。
He acted as if he knew nothing.
風が泣くかの如くに吹き荒れた。
The wind raged as though it were crying.