js add or remove class code example
Example: es6 add and remove class
let el = document.getElementById('container');
//remove class
el.classList.remove('first');
//remove class
el.classList.add('first');
let el = document.getElementById('container');
//remove class
el.classList.remove('first');
//remove class
el.classList.add('first');