ES6 Ajouter et supprimer la classe

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

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

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