mirror of
https://github.com/streamxstream/xStreamRepoWeb.git
synced 2026-04-21 18:01:32 +00:00
22 lines
694 B
JavaScript
22 lines
694 B
JavaScript
|
|
$( document ).ready(function() {
|
|
|
|
// PRELOADER
|
|
setTimeout(function(){
|
|
$('body').addClass('loaded');
|
|
}, 3000);
|
|
|
|
// SCROLL REVEAL
|
|
window.sr = new scrollReveal();
|
|
|
|
// SMOOTH SCROLL
|
|
smoothScroll.init({
|
|
speed: 900, // Integer. How fast to complete the scroll in milliseconds
|
|
easing: 'easeInOutCubic', // Easing pattern to use
|
|
updateURL: true, // Boolean. Whether or not to update the URL with the anchor hash on scroll
|
|
offset: 0, // Integer. How far to offset the scrolling anchor location in pixels
|
|
callbackBefore: function ( toggle, anchor ) {}, // Function to run before scrolling
|
|
callbackAfter: function ( toggle, anchor ) {} // Function to run after scrolling
|
|
});
|
|
|
|
}); |