-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
173 lines (161 loc) · 2.9 KB
/
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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
@import url(https://fonts.googleapis.com/css?family=Lato:400,300,700);
@import url(https://fonts.googleapis.com/css?family=Rubik:400,900);
* {
box-sizing: border-box;
}
body,
html {
height: 100%;
min-height: 100%;
}
body {
background: linear-gradient(#f6f7fc 0%, #d5e1e8 40%);
transform-style: preserve-3d;
transform: perspective(800px);
font-family: "Lato", sans-serif;
}
#card-container {
width: 700px;
height: 350px;
position: absolute;
top: 50%;
left: 50%;
margin: -175px 0 0 -350px;
z-index: 1000;
}
#card {
animation: backAn 60s infinite;
color: #fff;
padding: 30px;
width: 100%;
height: 100%;
position: absolute;
z-index: 1;
background: url(http://riccardotartaglia.it/img/deadpool/back.jpg) 100% bottom;
box-shadow: 0px 45px 100px rgba(0, 0, 0, 0.4),
inset 0 0 0 1000px rgba(156, 27, 27, 0.6);
}
#card .text-block {
position: relative;
z-index: 2;
text-shadow: 0px 3px 10px rgba(0, 0, 0, 0.7);
}
#card .text-block h1 {
font-family: "Rubik", sans-serif;
font-size: 3em;
text-align: start;
text-transform: uppercase;
font-weight: 700;
}
#card .text-block h1 small {
font-size: 0.4em;
color: #ccc;
position: relative;
bottom: 10px;
}
#card .text-block h3 {
margin: 0;
font-weight: 700;
}
#card .text-block p {
font-weight: 300;
width: 60%;
}
#card .text-block button {
transition: all 0.35s cubic-bezier(0.37, 0.26, 0.35, 1);
border: 4px solid #fff;
padding: 10px;
background: transparent;
font-family: "Rubik", sans-serif;
text-transform: uppercase;
font-weight: 700;
cursor: pointer;
}
#card .text-block button:hover {
background: #b51d2a;
}
#card-container .pg {
position: absolute;
height: 450px;
width: 40%;
right: -150px;
bottom: 0px;
z-index: 2;
}
#card-container .pg > img {
height: 450px;
}
.shine {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
90deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 0.2) 60%
);
z-index: 1;
}
button {
color: #fff;
}
@keyframes backAn {
0% {
background-size: 100%;
}
50% {
background-size: 250%;
}
100% {
background-size: 100%;
}
}
.closeBtn {
margin-left: 80%;
padding: 20px;
font-size: 20px;
}
.fadeIn {
animation-name: fadeIn;
-webkit-animation-name: fadeIn;
animation-duration: 1.5s;
-webkit-animation-duration: 1.5s;
animation-timing-function: ease-in-out;
-webkit-animation-timing-function: ease-in-out;
}
@keyframes fadeIn {
0% {
transform: scale(0);
opacity: 0;
}
60% {
transform: scale(1.1);
}
80% {
transform: scale(0.9);
opacity: 1;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@-webkit-keyframes fadeIn {
0% {
-webkit-transform: scale(0);
opacity: 0;
}
60% {
-webkit-transform: scale(1.1);
}
80% {
-webkit-transform: scale(0.9);
opacity: 1;
}
100% {
-webkit-transform: scale(1);
opacity: 1;
}
}