-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
187 lines (154 loc) · 3.06 KB
/
styles.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
body,html {
margin: 0px;
padding: 0;
font-family: 'Helvetica', sans-serif;
}
h1 {
font-size: 240px;
margin: 10px 0 0 0;
font-weight: lighter;
text-transform: uppercase;
color: #eeeeee;
}
p {
font-size: 12px;
font-weight: light;
color: #333333;
}
span a {
font-size: 18px;
color: #cccccc;
text-decoration: none;
margin: 0 10px;
transition: all 0.4s ease-in-out;
&:hover {
color: #ffffff;
}
}
@keyframes float {
0% {
box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);
transform: translatey(0px);
}
50% {
box-shadow: 0 25px 15px 0px rgba(0,0,0,0.2);
transform: translatey(-20px);
}
100% {
box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);
transform: translatey(0px);
}
}
.container {
width: 100%;
display: flex;
flex-direction: column;
justify-content: top;
align-items: top;
}
.avatar {
width: 150px;
height: 150px;
box-sizing: border-box;
border: 5px white solid;
border-radius: 50%;
overflow: hidden;
box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);
transform: translatey(0px);
animation: float 6s ease-in-out infinite;
img { width: 100%; height: auto; }
}
.content {
width: 100%;
max-width: 600px;
padding: 20px 40px;
box-sizing: border-box;
text-align: center;
}
/* slideshow */
.slider {
position: relative;
width: 350px;
margin: 50px auto;
perspective: 800px;
padding-top: 40px;
}
.rotator {
position: absolute;
left: 0;
right: 0;
margin: auto;
width: 55%;
height: 150px;
transform-style: preserve-3d;
animation: roter 59s linear infinite;
}
.items {
position: absolute;
height: 100%;
width: 100%;
overflow: hidden;
border: 2px solid rgb(255, 159, 5);
}
.items img {
height: 100%;
width: 100%;
transition: all 7s ease;
}
.items:hover img {
transform: scale(1.1);
}
@keyframes roter {
from {
transform: rotateY(0deg);
}
to {
transform: rotateY(360deg);
}
}
.items:first-child {
transform: rotateY(calc(40deg)) translateZ(300px);
}
.items:nth-child(2) {
transform: rotateY(calc(80deg)) translateZ(300px);
}
.items:nth-child(3) {
transform: rotateY(calc(120deg)) translateZ(300px);
}
.items:nth-child(4) {
transform: rotateY(calc(160deg)) translateZ(300px);
}
.items:nth-child(5) {
transform: rotateY(calc(200deg)) translateZ(300px);
}
.items:nth-child(6) {
transform: rotateY(calc(240deg)) translateZ(300px);
}
.items:nth-child(7) {
transform: rotateY(calc(280deg)) translateZ(300px);
}
.items:nth-child(8) {
transform: rotateY(calc(320deg)) translateZ(300px);
}
.items:nth-child(9) {
transform: rotateY(calc(360deg)) translateZ(300px);
}
.rotator:hover {
animation-play-state: paused;
}
.card {
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
transition: 0.3s;
border-radius: 5px;
height: 200px;
width: 200px;
}
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}
.container {
padding: 2px 16px;
}
img {
border-radius: 5px 5px 0 0;
}