let isMoved = false;
function moveBlock (div) {
if (!isMoved) {
div.style.left = '84%';
div.style.transitionDuration = '3s';
// div.style.transform = 'rotate(0turn)';
isMoved = true;
}
else {
div.style.left = 0;
div.style.transitionDuration = '3s';
div.style.transform = 'rotate(4turn)';
isMoved = false;
}
}