bug h1 transition page

This commit is contained in:
2019-06-20 20:15:55 +02:00
parent d6c2c075af
commit 130ebff543
14 changed files with 412 additions and 107 deletions
+33 -2
View File
@@ -67,8 +67,8 @@ function contact() {
})
}
var $page = $('#page-wrapper.blog');
function customscroll($page_item) {
var $page = $('#page-wrapper.blog');
var $page_item = $("body.blog #start, body.item");
$page_item.mCustomScrollbar({
@@ -104,10 +104,41 @@ function customscroll($page_item) {
});
}
function clickscroll() {
var $btnscroll = $('.scroll');
$btnscroll.on('click', function() {
$page.addClass("down");
})
}
function transitionPage() {
// var $links = $('a');
// $links.on('click', function(e) {
// var $link = $(this).attr("href");
// setTimeout(function() {
// window.location.href = $link;
// }, 10000);
//
// $links.parents('#top').fadeOut()
// })
$("a:not(.filter)").click(function(e) {
var link = $(this).attr("href");
$(this).parents('#top').fadeOut()
setTimeout(function() {
window.location.href = link;
}, 600);
e.preventDefault();
});
$('#top').fadeIn(1000).removeClass('hidden');
}
jQuery(document).ready(function($) {
masonry();
filteritem();
contact();
customscroll();
clickscroll();
transitionPage();
// $('#top').fadeIn();
});