In Japanese, ka no you niかのように means someone does something "as if" something else were true. Syntactically, this is (likely) the ka か particle turned into a no の adjective qualifying you 様 followed by the ni に adverbial copula. Other conjugations include: ka no you naかのような, ka no you daかのようだ, and ka no you desuかのようです.