Abstract: Disclosed are a device for expansion and contraction through rotation of a rotary shaft and a VR headset. The device includes a first connecting housing, a second connecting housing, a third connecting housing, a connecting member and a positioning member. One end of the second connecting housing is rotatably connected to one end of the first connecting housing, and the third connecting housing is provided with a second inclined surface configured to fit a first inclined surface of the second connecting housing. The connecting member is configured to fix the first connecting housing, the second connecting housing, and the third connecting housing. The positioning member is configured to control the second connecting housing and the third connecting housing to avoid deviation when the second connecting housing and the third connecting housing rotate relative to each other. The present application effectively improves the operating comfort for the user.