forked from hellofeiwu/jadeland
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
55 lines (48 loc) · 924 Bytes
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
section {
background: #eee;
max-width: 600px;
margin: 0 auto;
padding: 20px;
overflow: hidden;
}
.module {
width: 48%;
min-height: 200px;
background: white;
position: relative;
float: left;
padding: 20px;
margin-right: 4%;
margin-bottom: 4%;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.module:nth-child(even) {
margin-right: 0;
}
body {
background: url(http://s.cdpn.io/3/blurry-blue.jpg);
background-size: cover;
padding: 30px;
position: relative;
}
.come-in {
-webkit-transform: translateY(150px);
-webkit-animation: come-in 0.8s ease forwards;
}
.come-in:nth-child(odd) {
-webkit-animation-duration: 0.6s;
}
.already-visible {
-webkit-transform: translateY(0);
-webkit-animation: none;
}
@-webkit-keyframes come-in {
to {
-webkit-transform: translateY(0);
}
}