-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
146 lines (126 loc) · 3.23 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
@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');
* , ::before , ::after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
height: 100vh;
margin: 0;
font-size: 16px;
font-family: 'Indie Flower', cursive;
}
.paper {
position: relative;
width: 80%;
max-width: 550px;
height: 65vh;
max-height: 1100px;
border: 1px solid;
background-color: #e5e5f7;
background-size: 45px 45px;
background-image: repeating-linear-gradient(0deg, #000000, #000000 2px, #e5e5f7 2px, #e5e5f7);
}
.line-red {
top: 0;
left: 75px;
width: 2px;
height: 100%;
background-color: crimson;
}
.line-red , .circle , .circle-metal , .circle-metal::before , .circle-metal::after , .paper__title , .paper__paragraph , .paper__img{
position: absolute;
}
.circle {
top: 137px;
left: 20px;
width: 38px;
height: 38px;
border-radius: 50%;
-webkit-box-shadow: 0 180px #fff , 0 360px #fff;
box-shadow: 0 180px #fff , 0 360px #fff;
background-color: #fff;
}
.circle-metal {
top: 147px;
left: -35px;
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.circle-metal , .circle-metal::before , .circle-metal::after {
width: 75px;
height: 20px;
background: rgb(138,138,139);
background: linear-gradient(90deg, #8a8a8b 0%, #c2c9d0 50%, #d2d7d7 100%);
border-radius: 50px;
}
.circle-metal::before , .circle-metal::after {
content: "";
left: 0;
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
.circle-metal::before {
top: -180px;
}
.circle-metal::after {
top: -360px;
}
.paper__title , .paper__paragraph {
-webkit-clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
}
.paper__title {
top: 25px;
left: 100px;
-webkit-animation: 2s show forwards;
animation: 2s show forwards;
}
.paper__paragraph {
top: 72px;
left: 100px;
font-size: 1.5rem;
-webkit-animation: 2s 2s show forwards;
animation: 2s 2s show forwards;
}
@-webkit-keyframes show {
100% {
-webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
}
@keyframes show {
100% {
-webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
}
.paper__img {
top: -50px;
right: -50px;
width:150px;
-webkit-transform: rotate(0) scale(0);
transform: rotate(0) scale(0);
-webkit-animation: 1.5s 4s image forwards;
animation: 1.5s 4s image forwards;
}
@-webkit-keyframes image {
100% {
-webkit-transform: rotate(360deg) scale(1);
transform: rotate(360deg) scale(1);
}
}
@keyframes image {
100% {
-webkit-transform: rotate(360deg) scale(1);
transform: rotate(360deg) scale(1);
}
}