-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
57 lines (51 loc) · 1.05 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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;900&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background: #716c6c2b;
display: flex;
flex-direction: column;
gap: 2.5rem;
justify-content: center;
align-items: center;
min-height: 100vh;
}
a {
position: relative;
text-decoration: none;
text-transform: uppercase;
color: #000;
border: 3px solid #000;
font-size: 1.5rem;
font-weight: 500;
padding: 10px 30px;
letter-spacing: 0.3rem;
background-color: var(--bg);
z-index: 1;
transition: 0.5s;
}
a:hover {
color: #fff;
}
a::before {
content: "";
position: absolute;
background: #fff;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform: scaleX(1);
transform-origin: left;
transition: transform 0.5s ease;
z-index: -1;
}
a:hover::before {
transform-origin: right;
transition: transform 0.5s ease;
transform: scaleX(0);
}