how to add and remove class in pure 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');