Rotate Picture: newImage.style.transform = "rotate(360deg)"; newImage.style.transitionDuration = "3s";