Hi--this is MOST likely a condition called:
Benign positional vertigo (BPV)-or simply vertigo-which is a disorder of the inner ear.
Here is a detail link:
Your BPV sounds like a mild case; however, IF it gets severe [true vertigo; vomiting, etc], OR if it lasts more than a few days, then pls see your doctor for evaluation & testing; he may also prescribe meds to resolve the condition.
I DO hope you found my Answer to be helpful regarding your medical condition. IF SO-please hit **ACCEPT** as you read this Answer, in order that I may receive credit for my time, thanks. BONUSES & Positive Feedback Most appreciated!
(feel free to ask a followup Q, if needed)
Best Wishes for Your Health
--Dr. Steve, M.D./FABFP (Your Online Family Doctor)