I have a logo in .obj format that I am loading onto a canvas using three.js. The logo is an integral part of the website's loading section that I am currently developing. Within this section, there is a 'Click to Enter' button. My goal is for the logo to rotate 180 degrees vertically when someone clicks on this button.
To achieve this, I am using the following code snippet:
var deg = Math.PI / 180 * 180;
object.rotation.x -= deg;
While the logo does rotate as intended, the movement is not smooth. I would like it to have a smoother transition effect.
Any assistance with this issue would be greatly appreciated.
You can also view the test page by clicking on this link.
Thank you