mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
去掉firefox的Y轴,增加index-page
This commit is contained in:
@@ -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 (){
|
||||
|
||||
@@ -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 (){
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user