-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
105 lines (93 loc) · 2.21 KB
/
main.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
* {
margin: 0;
padding: 0;
-webkit-box-sizing: 0;
box-sizing: 0;
}
html {
font-size: 62.5%;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
text-transform: uppercase;
}
.container {
height: 100vh;
width: 100vw;
background-color: aliceblue;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
h1 {
color: var(--yellow);
font-size: 20rem;
font-weight: bold;
}
@media screen and (max-width: 900px) {
h1 {
font-size: 15rem;
}
}
@media screen and (max-width: 450px) {
h1 {
font-size: 10rem;
}
}
@media screen and (max-width: 250px) {
h1 {
font-size: 8rem;
}
}
button {
padding: 1rem 3rem;
font-size: 2rem;
outline: none;
margin-top: 5rem;
border-radius: 2rem;
border: none;
-webkit-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
}
button:hover {
cursor: pointer;
padding: 1rem 4rem;
}
.animate {
-webkit-animation: animate 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
animation: animate 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@-webkit-keyframes animate {
0% {
-webkit-transform: rotateY(20deg) rotateX(35deg) translate(300px, -300px) skew(-35deg, 10deg);
transform: rotateY(20deg) rotateX(35deg) translate(300px, -300px) skew(-35deg, 10deg);
opacity: 0;
}
100% {
-webkit-transform: rotateY(0) rotateX(0deg) translate(0, 0) skew(0deg, 0deg);
transform: rotateY(0) rotateX(0deg) translate(0, 0) skew(0deg, 0deg);
opacity: 1;
}
}
@keyframes animate {
0% {
-webkit-transform: rotateY(20deg) rotateX(35deg) translate(300px, -300px) skew(-35deg, 10deg);
transform: rotateY(20deg) rotateX(35deg) translate(300px, -300px) skew(-35deg, 10deg);
opacity: 0;
}
100% {
-webkit-transform: rotateY(0) rotateX(0deg) translate(0, 0) skew(0deg, 0deg);
transform: rotateY(0) rotateX(0deg) translate(0, 0) skew(0deg, 0deg);
opacity: 1;
}
}