Hi @rahulrajpl,
I’m sorry I didn’t notice your question before.
You can rotate your line just replacing the scatter3d that displays only markers, in my code pasted here https://community.plotly.com/t/rotating-3d-plots-with-plotly/34776 , as an answer to a similar question, into a scatter3d of mode =‘lines’.
This is the only change you have to make to get your lines rotated:
t = np.linspace(0, 10, 12)
x, y, z = np.cos(t), np.sin(t), t
fig= go.Figure(go.Scatter3d(x=x, y=y, z=z, mode='lines', line_width=5)) #you can define your own lines here
Eventually you can change in updatemenus, the frame duration to get the desired speed of rotation.