-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
113 lines (94 loc) · 1.81 KB
/
style.css
File metadata and controls
113 lines (94 loc) · 1.81 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
html, body {
height: 100%;
width: 100%;
}
body {
background-color: #3498db;
display: flex;
justify-content: center;
align-items: center;
}
.animate {
transition: all 750ms ease-in-out;
}
.awesome {
position: relative;
width: 250px;
height: 250px;
margin: 0 auto;
backface-visibility: hidden;
}
.awesome .sticky {
position: absolute;
top: 0;
left: 0;
width: 250px;
height: 250px;
}
.awesome .reveal {
box-shadow: 0 1px 0px rgba(0,0,0,.15);
font-family: 'helvetica neue', arial;
font-weight: 200;
line-height: 250px;
text-align: center;
cursor: pointer;
}
.awesome .reveal {
background: #fafafa;
}
.awesome _wrapper {
position: absolute;
width: 250px;
height: 250px;
left: 0px;
top: 0px;
overflow: hidden;
}
.awesome {
position: absolute;
width: 250px;
height: 250px;
border-radius: 999px;
}
.awesome .back {
height: 10px;
top: 30px;
}
.awesome:hover .back {
height: 90px;
top: 110px;
}
.awesome .front {
height: 150px;
bottom: 0;
top: auto;
-webkit-box-shadow: 0 -140px 20px -140px rgba(0,0,0,.3);
}
.awesome:hover .front {
height: 70px;
-webkit-box-shadow: 0 -60px 10px -60px rgba(0,0,0,.1);
}
.awesome .front {
background: #fbec3f;
background-image: -webkit-linear-gradient(top, rgba(251,236,63,.0) 75%, #f7bb37 95%);
background-image: -moz-linear-gradient(top, rgba(251,236,63,.0) 75%, #f7bb37 95%);
background-image: linear-gradient(top, rgba(251,236,63,.0) 75%, #f7bb37 95%);
}
.awesome h4 {
font-family: 'helvetica neue', arial;
font-weight: 200;
text-align: center;
position: absolute;
width: 180px;
height: 180px;
line-height: 140px;
transition: opacity 50ms linear 400ms;
}
.awesome:hover h4 {
opacity: 0;
transition: opacity 50ms linear 300ms;
}
.awesome:hover .front {
background-color: #e2d439;
background-position: 0 100px;
}