I’m very confused when I read the sentence below
The steam pipes rattled suddenly, and Franklin jumped with fright.
The birds smashed into the top of their cages in fright.
So please kindly tell me what is the difference between “in” and "with" in the phases, can they be replaced by each other? Thanks