ES6 Agregar y eliminar clase

let el = document.getElementById('container');

//remove class
el.classList.remove('first');

//remove class
el.classList.add('first');
Jolly Jellyfish