-
Notifications
You must be signed in to change notification settings - Fork 171
Home
Nicola Franchini edited this page Dec 16, 2021
·
20 revisions
Dropped jQuery. You don't need any external library.
new Venobox({
selector: '.venobox'
});
But if you love the jQuery style (or you are too lazy to update your old initializations), the old method is still supported, if the jQuery library is loaded:
$('.venobox').venobox();
-
selectorItems to be initialized -
customClassCustom class for the main wrapper .vbox-overlay -
maxWidthMax content width -
navKeyboardMax content width -
navTouchMax content width -
ratioFor Video and iFrames -
popupOpen specific element on page load -
navSpeedTransition time to silde out items -
shareStyle3 styles for the share buttons: 'block', 'pill', 'transparent', 'bar' -
titleStyle3 styles for the titles: 'block', 'pill', 'transparent', 'bar' -
toolsBackgroundbackground color for title and share -
toolsColorcolor for navigation tools
-
noArrowsrenamed tonavigation(default: true) -
numeratiorenamed tonumeration -
cb_pre_openrenamed toonPreOpen -
cb_post_openrenamed toonPostOpen -
cb_pre_closerenamed toonPreClose -
cb_after_navrenamed toonNavComplete -
cb_content_loadedrenamed toonContentLoaded -
cb_initrenamed toonInit
-
cb_post_close -
closeBackground -
closeColor -
framewidth -
frameheight -
numerationBackground -
numerationColor -
numerationPosition -
titleBackground -
titleColor -
arrowsColor
-
data-borderoverrides the global optionborder -
data-maxwidthoverrides the global optionmaxWidth -
data-ratiooverrides the global optionratio
-
data-cssrenamed todata-customclassoverrides the global optioncustomClass
Full list of currently available options:
selector: '.venobox',
autoplay : false,
bgcolor: '#fff',
border: '0',
customClass: false,
infinigall: false,
maxWidth: '100%',
navigation: true,
navKeyboard: true,
navTouch: true,
navSpeed: 300,
numeration: false,
overlayClose: true,
overlayColor: 'rgba(23,23,23,0.95)',
popup: false,
ratio: '16x9', // '1x1' | '4x3' | '16x9' | '21x9' | 'full'
share: false,
shareStyle: 'pill', // 'bar' | 'block' | 'pill' | 'transparent'
spinner: 'bounce', // 'plane' | 'chase' | 'bounce' | 'wave' | 'pulse' | 'flow' | 'swing' | 'circle' | 'circle-fade' | 'grid' | 'fold' | 'wander'
spinColor : '#d2d2d2',
titleattr: 'title',
titlePosition: 'top', // 'top' || 'bottom'
titleStyle: 'bar', // 'bar' | 'block' | 'pill' | 'transparent'
toolsBackground: '#1C1C1C', // 'transparent'
toolsColor: '#d2d2d2',