Skip to content

Instantly share code, notes, and snippets.

@nhh
Created October 8, 2019 14:26
Show Gist options
  • Save nhh/872c024c73e29070daa818b2f1d8c825 to your computer and use it in GitHub Desktop.
Save nhh/872c024c73e29070daa818b2f1d8c825 to your computer and use it in GitHub Desktop.
$(document).ready(function() {
$("#liga3-quota-slider").lightSlider({
item: 11,
autoWidth: true,
slideMove: 1, // slidemove will be 1 if loop is true
slideMargin: 0,
addClass: '',
mode: "slide",
useCSS: true,
cssEasing: 'ease', //'cubic-bezier(0.25, 0, 0.25, 1)',//
easing: 'linear', //'for jquery animation',////
speed: 400, //ms'
auto: false,
loop: false,
slideEndAnimation: true,
pause: 2000,
keyPress: false,
controls: false,
prevHtml: '',
nextHtml: '',
rtl:false,
adaptiveHeight:false,
vertical:false,
verticalHeight:500,
vThumbWidth:100,
thumbItem:11,
pager: false,
gallery: false,
galleryMargin: 0,
thumbMargin: 0,
currentPagerPosition: 'middle',
enableTouch:true,
enableDrag:false,
freeMove:false,
swipeThreshold: 40,
responsive : [
{
breakpoint: 1023,
settings: {
controls: true,
}
},
{
breakpoint: 1024,
settings: {
controls: true,
}
}
],
onBeforeStart: function (el) {},
onSliderLoad: function (el) {
$('#liga3-quota-slider').removeClass('liga3-is-hidden');
el.refresh();
setTimeout(function() {
el.refresh();
}, 500)
},
onBeforeSlide: function (el) {},
onAfterSlide: function (el) {},
onBeforeNextSlide: function (el) {},
onBeforePrevSlide: function (el) {}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment