replace load event to ready
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
788384bd6d
commit
700033df2d
|
@ -97,16 +97,7 @@
|
|||
//On Window load & Resize
|
||||
$(window)
|
||||
.on('load', function() { //Load
|
||||
// Animation on Page Loading
|
||||
$(".preloader").fadeOut( 800, "linear" );
|
||||
|
||||
// initializing page transition.
|
||||
var ptPage = $('.animated-sections');
|
||||
if (ptPage[0]) {
|
||||
PageTransitions.init({
|
||||
menu: 'ul.main-menu',
|
||||
});
|
||||
}
|
||||
})
|
||||
.on('resize', function() { //Resize
|
||||
mobileMenuHide();
|
||||
|
@ -119,6 +110,18 @@
|
|||
|
||||
// On Document Load
|
||||
$(document).on('ready', function() {
|
||||
|
||||
// Animation on Page Loading
|
||||
$(".preloader").fadeOut( 800, "linear" );
|
||||
|
||||
// initializing page transition.
|
||||
var ptPage = $('.animated-sections');
|
||||
if (ptPage[0]) {
|
||||
PageTransitions.init({
|
||||
menu: 'ul.main-menu',
|
||||
});
|
||||
}
|
||||
|
||||
var movementStrength = 23;
|
||||
var height = movementStrength / $(document).height();
|
||||
var width = movementStrength / $(document).width();
|
||||
|
|
Loading…
Reference in New Issue