@tomcoso/img-slider-ts
v1.0.10
Published
Generates an image slider panel with the given images
Downloads
3
Readme
img-slider-one
Generates an image slider panel with the given images.
How to use it
First make sure your project has an HTML <head>
tag, that is where the CSS will be appended with a <style>
tag.
Then pass an array of urls along with a CSS selector for the parent
create(imageArray : string[], parentSelector : string)
Example
import createSlider from 'img-slider-one-ts'
// bla bla
createSlider([
./assets/image-one.jpg,
./assets/image-two.jpg,
./....
], '.hero > div.slider-wrap')