add and remove class name in javascript 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');