main.style.transform = `translateY(${blockHeinght})`; //или так main.style.transform = 'translateY(' + blockHeinght+')';