站长素材 css3动画
建议使用谷歌浏览器或者是使用IE10及以上版本的浏览器
bounceInUp
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
5
<title>bounceInUp-站长素材(zzsucai.com)</title>
6
<style>
7
.div {
8
    width:300px;
9
    height:200px;
10
    margin:100px auto;
11
    background:url(images/zzsucai.png)
12
}
13
#animation {
14
-webkit-animation:bounceInUp 1s .2s ease both;
15
-moz-animation:bounceInUp 1s .2s ease both;
16
}
17
@-webkit-keyframes bounceInUp {
18
0% {
19
opacity:0;
20
-webkit-transform:translateY(2000px)
21
}
22
60% {
23
opacity:1;
24
-webkit-transform:translateY(-30px)
25
}
26
80% {
27
-webkit-transform:translateY(10px)
28
}
29
100% {
30
-webkit-transform:translateY(0)
31
}
32
}
33
@-moz-keyframes bounceInUp {
34
0% {
35
opacity:0;
36
-moz-transform:translateY(2000px)
37
}
38
60% {
39
opacity:1;
40
-moz-transform:translateY(-30px)
41
}
42
80% {
43
-moz-transform:translateY(10px)
44
}
45
100% {
46
-moz-transform:translateY(0)
47
}
48
}
49
</style>
50
</head>
51
<body>
52
<div id="animation" class="div"></div>
53
</body>
54
</html>
55
bounceInLeft