bug h1 transition page
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user