提前顶部导航的动画

This commit is contained in:
afc163 2015-06-04 18:15:06 +08:00
parent c89536397f
commit 337d16acf2
3 changed files with 3 additions and 8 deletions

View File

@ -182,7 +182,6 @@ $(function () {
self.textTween();
$("body").addClass("index-page");
var header=$("#header")||$("header"),footer=$("#footer")||$("footer");
header.removeAttr("style");
footer.removeAttr("style")
},500);

View File

@ -11,7 +11,6 @@ $(function () {
self.header=$("#header")||$("header");
self.main=$(".main");
self.footer=$("#footer")||$("footer");
self.header.css("opacity",0);
self.footer.css("opacity",0);
self.addLoad()
},

View File

@ -117,7 +117,6 @@ header {
overflow: hidden;
border-bottom: 1px solid #eee;
font-size: 16px;
}
.fn-hide {
@ -231,6 +230,8 @@ header {
font-size: 0.875em;
position: relative;
margin-right: 25px;
-webkit-animation: yTopMatrix .5s ease-out .5s backwards;
animation: yTopMatrix .5s ease-out .5s backwards;
}
.nav ul li {
@ -1474,10 +1475,6 @@ footer ul li > a {
.index-page header{
transition: opacity 0.5S;
}
.index-page .nav {
-webkit-animation: yTopMatrix .5s ease-out .5s backwards;
animation: yTopMatrix .5s ease-out .5s backwards;
}
.index-page footer {
-webkit-animation: yBottomMatrix .5s ease-out 1s backwards;