Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
cb0237b8
A
ant-design
项目概览
wanjj_1210
/
ant-design
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cb0237b8
编写于
5月 28, 2015
作者:
罗
罗宪
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
loading跟首页去掉滚动条。
上级
40d40ffc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
53 addition
and
60 deletion
+53
-60
static/home.js
static/home.js
+3
-5
static/style.css
static/style.css
+50
-55
未找到文件。
static/home.js
浏览文件 @
cb0237b8
...
...
@@ -74,7 +74,8 @@ $(function () {
},
loadImg
:
function
()
{
var
self
=
this
;
var
loadBox
=
$
(
"
<div class='load-box'><em></em></div>
"
).
appendTo
(
self
.
animBox
);
var
loadBox
=
$
(
"
<div class='load-box'><em><img src='https://t.alipayobjects.com/images/rmsweb/T1B9hfXcdvXXXXXXXX.svg' width='50' height='50'></em>
"
+
"
</div>
"
).
appendTo
(
self
.
box
);
var
img
=
new
Image
();
img
.
onload
=
function
()
{
loadBox
.
addClass
(
"
load-out
"
).
one
(
animEndStr
,
function
()
{
...
...
@@ -255,9 +256,6 @@ $(function () {
}
}
};
$
(
"
#main
"
).
one
(
animEndStr
,
function
()
{
bannerAnim
.
init
()
})
bannerAnim
.
init
()
});
static/style.css
浏览文件 @
cb0237b8
...
...
@@ -228,6 +228,7 @@ header {
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
}
.perspective
{
vertical-align
:
top
;
...
...
@@ -238,8 +239,9 @@ header {
.main
{
overflow
:
hidden
;
position
:
relative
;
min-height
:
calc
(
100%
-
2
0
0px
);
min-height
:
calc
(
100%
-
2
1
0px
);
transform-style
:
preserve-3d
;
transition
:
transform
.6s
cubic-bezier
(
0.785
,
0.135
,
0.15
,
0.86
),
height
.5s
ease-out
;
transition
:
transform
.6s
cubic-bezier
(
0.785
,
0.135
,
0.15
,
0.86
),
height
.5s
ease-out
;
}
.banner-box
{
...
...
@@ -248,8 +250,8 @@ header {
min-height
:
600px
;
position
:
relative
;
overflow
:
inherit
;
-webkit-animation
:
alphaTo
.3s
ease-out
;
animation
:
alphaTo
.3s
ease-out
;
-webkit-animation
:
alphaTo
.3s
ease-out
;
animation
:
alphaTo
.3s
ease-out
;
}
.banner-box
.banner-img
{
...
...
@@ -269,64 +271,35 @@ header {
z-index
:
2
;
background
:
#2d2d2d
}
.load-main-box
{
top
:
0
;
background
:
rgba
(
100
,
100
,
100
,
0.15
);
animation
:
alphaTo
.3s
ease-out
;
-webkit-animation
:
alphaTo
.3s
ease-out
;
}
.load-box
{
width
:
40px
;
height
:
40px
;
background
:
#ffffff
;
border-radius
:
4px
;
box-shadow
:
1px
1px
3px
rgba
(
0
,
0
,
0
,
0.15
);
-webkit-box-shadow
:
0
2px
3px
rgba
(
0
,
0
,
0
,
0.15
);
overflow
:
hidden
;
-webkit-perspective
:
300px
;
-moz-perspective
:
300px
;
width
:
50px
;
height
:
50px
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
margin-left
:
-20px
;
margin-top
:
-20px
;
}
.load-box
em
{
display
:
block
;
width
:
20px
;
height
:
20px
;
border-radius
:
20px
20px
0
0
;
background
:
linear-gradient
(
0deg
,
transparent
50%
,
#6EB4E0
50%
);
margin
:
10px
;
position
:
relative
;
float
:
left
;
animation
:
RotaeX
1.5s
infinite
linear
;
-webkit-animation
:
RotaeX
1.5s
infinite
linear
;
}
.load-box
em
:before
,
.load-box
em
:after
{
content
:
""
;
display
:
block
;
}
.load-box
em
:before
{
width
:
14px
;
height
:
14px
;
border-radius
:
14px
;
margin
:
3px
auto
;
position
:
relative
;
z-index
:
1
;
background
:
#ffffff
;
}
.load-box
em
:after
{
position
:
absolute
;
width
:
20px
;
height
:
20px
;
border-radius
:
20px
;
top
:
0
;
background
:
linear-gradient
(
90deg
,
#6EB4E0
,
transparent
);
margin-left
:
-25px
;
margin-top
:
-25px
;
z-index
:
99
;
animation
:
alphaTo
.3s
ease-out
;
-webkit-animation
:
alphaTo
.3s
ease-out
;
}
.load-box
em
{
-webkit-transform-style
:
preserve-3d
;
-moz-transform-style
:
preserve-3d
;
-ms-transform-style
:
preserve-3d
;
transform-style
:
preserve-3d
;
display
:
block
;
width
:
50px
;
height
:
50px
;
animation
:
loadTween
1
S
cubic-bezier
(
0.785
,
0.135
,
0.15
,
0.86
)
infinite
;
}
.load-out
{
transform
:
scale
(
0
,
0
);
-webkit-animation
:
scaleOut
.5s
cubic-bezier
(
0.6
,
-0.28
,
0.735
,
0.045
);
animation
:
scaleOut
.5s
cubic-bezier
(
0.6
,
-0.28
,
0.735
,
0.045
);
-webkit-animation
:
alphaOut
.5s
cubic-bezier
(
0.6
,
-0.28
,
0.735
,
0.045
);
animation
:
alphaOut
.5s
cubic-bezier
(
0.6
,
-0.28
,
0.735
,
0.045
);
}
.banner-box
#bannerAnim
.banner-line-absolute
{
position
:
absolute
;
...
...
@@ -1017,6 +990,28 @@ footer ul li > a {
transform
:
rotate
(
360deg
);
}
}
@keyframes
loadTween
{
0
%
{
transform
:
rotateY
(
0deg
);
}
50
%
{
transform
:
rotateY
(
180deg
);
}
100
%
{
transform
:
rotateX
(
-180deg
);
}
}
@-webkit-keyframes
loadTween
{
0
%
{
-webkit-transform
:
rotateY
(
0deg
);
}
50
%
{
-webkit-transform
:
rotateY
(
180deg
);
}
100
%
{
-webkit-transform
:
rotateX
(
-180deg
);
}
}
/* 首页有动画 */
.index-page
.nav
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录