Depuración de tamplete
This commit is contained in:
36
resources/public/js/examples/examples.locomotive.scroll.js
Normal file
36
resources/public/js/examples/examples.locomotive.scroll.js
Normal file
@ -0,0 +1,36 @@
|
||||
/*
|
||||
Name: Locomotive Scroll Examples
|
||||
Written by: Okler Themes - (http://www.okler.net)
|
||||
Theme Version: 12.1.0
|
||||
*/
|
||||
|
||||
(($ => {
|
||||
/*
|
||||
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
|
||||
}
|
||||
});
|
||||
|
||||
// Scroll to Top
|
||||
$('.scroll-to-top').on('click', e => {
|
||||
scroller.scrollTo(0);
|
||||
});
|
||||
|
||||
} 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 ]);
|
Reference in New Issue
Block a user