The word 'momentarily' is an adverb, a word used to modify a verb, an adjective, or another adverb.
Examples:
He ran out for a quick errand and we expect him toreturn momentarily. (modifies the verb 'return')
We were momentarily afraid that we had missed the train. (modifies the adjective 'afraid')
I looked away from the toddler momentarily, but somehow he disappeared. (modifies the adverb 'away')