<input type="button" value="Кнопка" onclick="addCl()" />
function addCl() { document.getElementById('block1').setAttribute('class', 'block1'); setTimeout(function() { document.getElementById('block2').setAttribute('class', 'block2'); },1000); }