This is my own implementation of basic js functions
npm i js-interactivity --save
Then...
import { interactivity } from 'js-interactivity';
everything you want to use...
.....
.....
- Forms - forms(formsSelector, modalTimerId)
- Modal - modal(triggerSelector, modalSelector, modalTimerId)
- Fetch - getResource(url)
- Slider - slider({container, slide, nextArrow, prevArrow, totalCounter, currentCounter,wrapper, field})
- Tabs - tabs(tabsSelector, tabsContentSelector, tabsParentSelector, activeClass)
- Timer - timer(id, deadline)