mirror of
https://github.com/streamxstream/xStreamRepoWeb.git
synced 2026-04-21 09:51:33 +00:00
- tmdb-helper-files included
- new design
This commit is contained in:
22
js/functions.js
Normal file
22
js/functions.js
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
$( 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
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user