1
0
Fork 0

replace load event to ready
continuous-integration/drone/push Build is passing Details

master
Denys Medvid 7 months ago
parent 788384bd6d
commit 700033df2d
Signed by: DenysMedvid
GPG Key ID: DFD67019AED5D4C4

@ -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…
Cancel
Save