<script>
(function(document, window, $){
$(document).ready(function(){
// Variables
var
windowWidth = $(window).width(),
windowHeight = $(window).height(),
$header = $('header');
// header anchor tags
function headerAnchors(){
var pageDirection = '';
var thisElement;
var timeout;
$header.find('nav li a').click(function(event){
event.preventDefault();
$('.cube').removeClass('reverse-' + pageDirection);
thisElement = $(this);
pageDirection = thisElement.data('direction');
reverseDirection = thisElement.data('reverse-direction');
thisElement.parent().addClass('active').siblings().removeClass('active');
$('.cube').addClass('reverse-' + pageDirection);
$header.addClass('go-out');
$('#wrap').addClass('active');
clearTimeout(timeout);
timeout = setTimeout(function(){
$header.removeClass('go-out');
$('#wrap').removeClass('active');
}, 1000);
});
}headerAnchors();
$(window).resize(function(){
// Vars
windowWidth = $(window).width();
windowHeight = $(window).height();
// Functions
});
});
})(document, window, jQuery);</script>
*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
