hover效果优化

master
Lee 2022-10-10 14:46:18 +08:00
parent 5e0d051636
commit 0f5806d5d9
2 changed files with 465 additions and 386 deletions

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@ $(function(){
$('.header').addClass('header-white'); $('.header').addClass('header-white');
}else{ }else{
$(window).scroll(function(){ $(window).scroll(function(){
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop; var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
if(scrollTop > 10){ if(scrollTop > 10){
$('.header').addClass('header-white'); $('.header').addClass('header-white');
} else { } else {