-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.scss
75 lines (58 loc) · 1.57 KB
/
main.scss
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
* {
margin: 0;
padding: 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;
flex-direction: column;
display: flex;
justify-content: center;
align-items: center;
}
h1 {
color: var(--yellow);
font-size: 20rem;
font-weight: bold;
@media screen and (max-width:900px){ font-size: 15rem; }
@media screen and (max-width:450px){ font-size: 10rem; }
@media screen and (max-width:250px){ font-size: 8rem; }
}
button {
padding: 1rem 3rem;
font-size: 2rem;
outline: none;
margin-top: 5rem;
border-radius:2rem;
border: none;
transition: all .3s ease-in-out;
&:hover {
cursor: pointer;
padding: 1rem 4rem;
}
}
.animate {
-webkit-animation: animate 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
animation: animate 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
@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;
}
}