35 lines
669 B
JavaScript
35 lines
669 B
JavaScript
/*
|
|
Name: Locomotive Scroll Examples
|
|
Written by: Okler Themes - (http://www.okler.net)
|
|
Theme Version: 9.9.2
|
|
*/
|
|
|
|
(function( $ ) {
|
|
|
|
'use strict';
|
|
|
|
/*
|
|
Locomotive
|
|
*/
|
|
if (typeof LocomotiveScroll !== 'undefined') {
|
|
|
|
const scroller = new LocomotiveScroll({
|
|
el: document.querySelector("[data-scroll-container]"),
|
|
smooth: true,
|
|
mobile: {
|
|
breakpoint: 0,
|
|
smooth: true
|
|
},
|
|
tablet: {
|
|
breakpoint: 0,
|
|
smooth: true
|
|
}
|
|
});
|
|
|
|
} else {
|
|
|
|
theme.fn.showErrorMessage('Failed to Load File', 'Failed to load: Locomotive Scroll - Include the following file(s): (vendor/locomotive-scroll/locomotive-scroll.min.js)');
|
|
|
|
}
|
|
|
|
}).apply( this, [ jQuery ]); |