Recently, I stumbled upon this interactive Pen: https://codepen.io/golle404/pen/BoqrEN that caught my eye. I thought it would be interesting to make the object move every few seconds.
My first attempt involved using the following code snippet:
setTimeout(function() {
document.getElementById("move").style.transform = "rotateY(203deg)";
}, 2000);
However, I quickly realized that this code only moves the object once and doesn't create the continuous spinning effect I had in mind with 3 stops.
What I have envisioned is for the cube to rotate to 203 degrees, pause there for 2 seconds, then smoothly transition to another angle like 180 degrees, all while repeating infinitely in a loop.
Is there a way to achieve this desired effect, or is it simply not possible?