js remove class add 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');