const globe = document.querySelector('.globe');
const globeImage = document.querySelector('.globe img');
let rotation = 0;
function rotateGlobe() {
rotation += 5;
globeImage.style.transform = `rotateY(${rotation}deg)`;
requestAnimationFrame(rotateGlobe);
}
rotateGlobe();
<div class="globe">
<img src="globe.png" alt="Globe">
</div>

A caring designer community to share knowledge with.