Usage patterns
〈事〉が一瞬で〈動詞〉something happens/finishes in an instant
The fireworks vanished in an instant.
一瞬のうちに〈事〉が起こるsomething happens within a single instant
The accident happened in the blink of an eye.
一瞬〈動詞〉to do something (think, hesitate, stop) for just a split second
He thought for just a moment before answering.