1.0.2 • Published 6 years ago
slider-helper-components v1.0.2
Slider helper
It is "web components" where sliders can be used very easily.
There are only two settings required.
It also supports touch operation on mobile devices.
Preview
Installation
$ npm i slider-helper-components
Usage
If you want to move automatically, describe "auto" attribute and describe the interval in "ms".
If you do not need to run it automatically, delete the "auto" attribute.
<script type="module">
import './slider-helper-components/index.js'
</script>
<slider-helper
images="./images/slide01.jpg, ./images/slide02.jpg, ./images/slide03.jpg, ./images/slide04.jpg"
auto="3000"
>
</slider-helper>