-
Notifications
You must be signed in to change notification settings - Fork 3
/
style.css
68 lines (56 loc) · 1.34 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
/* Source code: https://github.com/robole/artifice */
@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&display=swap");
main {
margin: 0 auto;
max-width: 375px;
perspective: 1000px;
display: grid;
}
img {
display: block;
width: 100%;
filter: saturate(150%);
clip-path: polygon(56.13% 86.01%, 72.14% -0.6%, 33.73% 12.88%);
}
/* for some reason justify-content:center on the main
element does not work, but justify-self:center here does! */
.roller {
width: 280px;
height: 40px;
position: relative;
font-size: 1.5rem;
transform-style: preserve-3d;
color: gold;
text-shadow: rgba(255, 240, 104, 0.8) 0 0 2px;
font-family: "Comfortaa", cursive;
justify-self: center;
align-self: end;
}
.hatin {
width: 200px;
margin-top: 30px;
}
.roller div {
position: absolute;
background-color: rgb(5, 5, 5);
backface-visibility: hidden;
padding: 10px 0;
}
.roller div:nth-child(1) {
transform: rotateX(60deg) translateZ(40px);
}
.roller div:nth-child(2) {
transform: rotateX(120deg) translateZ(40px);
}
.roller div:nth-child(3) {
transform: rotateX(180deg) translateZ(40px);
}
.roller div:nth-child(4) {
transform: rotateX(240deg) translateZ(40px);
}
.roller div:nth-child(5) {
transform: rotateX(300deg) translateZ(40px);
}
.roller div:nth-child(6) {
transform: rotateX(360deg) translateZ(40px);
}