feat: 增加header动画

This commit is contained in:
Argo Zhang 2019-07-19 18:10:58 +08:00
parent 7b3526d9c2
commit 0f95ca819a
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 16 additions and 0 deletions

View File

@ -13,6 +13,10 @@
background-position: 98% -28px;
}
.header .cloud.move {
background-position: 94% -28px;
}
.header .bird {
background-image: url('../images/bird.png');
background-repeat: no-repeat;
@ -20,6 +24,10 @@
padding: 0 15px;
}
.header .move .bird {
background-position: 104% top;
}
.sidebar-toggle-box {
color: #eee;
}

View File

@ -16,4 +16,12 @@
}
$('body').toggleClass('sidebar-open');
});
$('.cloud, .bird').css({
"transition": "all linear 3s"
});
$('.cloud').on('mouseenter mouseleave', function () {
$(this).toggleClass('move');
});
});