accordion-slider-js
Version:
Modular accordion slider built in Vanilla JavaScript.
31 lines (29 loc) • 743 B
JavaScript
// The default options of the slider
const defaults = {
width: 800,
height: 400,
responsive: true,
responsiveMode: 'auto',
aspectRatio: -1,
orientation: 'horizontal',
startPanel: -1,
openedPanelSize: 'max',
maxOpenedPanelSize: '80%',
openPanelOn: 'hover',
closePanelsOnMouseOut: true,
mouseDelay: 200,
panelDistance: 0,
openPanelDuration: 700,
closePanelDuration: 700,
pageScrollDuration: 500,
pageScrollEasing: 'swing',
breakpoints: null,
visiblePanels: -1,
startPage: 0,
shadow: true,
shuffle: false,
panelOverlap: true,
// The list of add-ons that will be initialized when the slider is initialized.
addOns: []
};
export default defaults;