UNPKG

tiny-slider

Version:

Vanilla javascript slider for all purposes, inspired by Owl Carousel.

10 lines (9 loc) • 325 B
import { classListSupport, hasClass } from './hasClass.js'; var removeClass = classListSupport ? function (el, str) { if (hasClass(el, str)) { el.classList.remove(str); } } : function (el, str) { if (hasClass(el, str)) { el.className = el.className.replace(str, ''); } }; export { removeClass };