mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
548 B
JavaScript
21 lines
548 B
JavaScript
import {tns} from "tiny-slider/src/tiny-slider";
|
|
|
|
var sliderSimple ;
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
document.querySelectorAll('.SliderSimple')?.forEach(function (el) {
|
|
sliderSimple = tns({
|
|
container: el,
|
|
items: 1,
|
|
slideBy: 'page',
|
|
autoplay: true,
|
|
autoplayButton: false,
|
|
// nextButton: false,
|
|
controls: false,
|
|
autoplayHoverPause: true,
|
|
mouseDrag: true,
|
|
// speed:10000,
|
|
});
|
|
});
|
|
});
|