Functions
addClass
- addClass(el: Element | NodeListOf<Element> | Element, classNames: string): void
-
Parameters
-
el: Element | NodeListOf<Element> | Element
-
classNames: string
Returns void
removeClass
- removeClass(el: Element | NodeListOf<Element> | Element, classNames: string): void
-
Parameters
-
el: Element | NodeListOf<Element> | Element
-
classNames: string
Returns void
toggleClass
- toggleClass(el: Element | NodeListOf<Element> | Element, classNames: string): void
-
Parameters
-
el: Element | NodeListOf<Element> | Element
-
classNames: string
Returns void
Add a class name or names to an element or a collection of elements