去掉firefox的Y轴,增加index-page

This commit is contained in:
罗宪
2015-06-04 18:40:53 +08:00
parent 6d7a7c6ad2
commit aee71fd7f6
3 changed files with 13 additions and 4 deletions

View File

@@ -152,7 +152,14 @@ $(function () {
T.set(self.imgBox,{scale:self.scale,transformPerspective:400});
T.killTweensOf(self.imgBox,true);
//console.log(_x)
T.to(self.imgBox,.5,{rotationY:_x/60,x:_x})
var tobj={};//{rotationY:_x/60,x:_x};
if(navigator.userAgent.indexOf('Firefox') >= 0){
tobj.x=_x
}else{
tobj.x=_x;
tobj.rotationY=_x/60;
}
T.to(self.imgBox,.5,tobj);
})
},
endTween:function (){

View File

@@ -12,6 +12,7 @@ $(function () {
self.main=$(".main");
self.footer=$("#footer")||$("footer");
self.footer.css("opacity",0);
self.body.addClass("index-page");
self.addLoad()
},
addLoad:function (){

View File

@@ -313,6 +313,7 @@ header {
width: 2400px;
transform-origin: center center;
-webkit-transform-origin: center center;
-moz-transform-origin: center center;
transition: opacity 0.5s ease-out;
-webkit-transition: opacity 0.5s ease-out;
}
@@ -357,7 +358,7 @@ header {
height: 50px;
margin: auto;
animation: loadTween 2S cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
-webkit-animation: loadTween 2S cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;;
}
.load-box span{
display: inline-block;
@@ -1541,8 +1542,8 @@ footer ul li > a {
}
.index-page footer {
-webkit-animation: yBottomMatrix .5s ease-out 1s backwards;
animation: yBottomMatrix .5s ease-out 1s backwards;
-webkit-animation: yBottomMatrix .5s ease-out 2s backwards;
animation: yBottomMatrix .5s ease-out 2s backwards;
}
.index-page .logo {