Model hovering on front

Can someone send the code of hw they are making the model rotate just by hovering

im not sure what you mean, the auto spin thing for urls?