toggle multiple class js code example
Example: js toggle multiple classes
const toggleCSSclasses = (el, ...cls) => cls.map(cl => el.classList.toggle(cl))
const toggleCSSclasses = (el, ...cls) => cls.map(cl => el.classList.toggle(cl))