$ npm install @seolhun/events
$ yarn add @seolhun/events
- You can use the
Element
to defineEvent Component
.
import { Slide } from '@seolhun/events';
new Slide(document.getElementById('slide'), {
items,
infinity: true,
autoSlide: true,
delayTime: 3000,
}).view();
import { SHEvent } from '@seolhun/events';
SHEvent('slide')(document.getElementById('slide'), {
items,
infinity: true,
autoSlide: true,
delayTime: 3000,
}).view();