You just need a Live Photo.

Take your selfie while you are spinning. Then, amongst the Live Photos effects, choose Long Exposure.

This is what you’ll get!