-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
50 lines (43 loc) · 788 Bytes
/
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: blueviolet;
font-family: cursive;
}
.button {
background-color: pink;
padding: 25px 40px;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
text-decoration: none;
color: black;
position: relative;
overflow: hidden;
}
.button span {
position: relative;
z-index: 1;
}
.button::before {
content: '';
position: absolute;
background-color: orangered;
height: 0px;
width: 0px;
left: var(--xPos);
top: var(--yPos);
transform: translate(-50%, -50%);
border-radius: 50%;
transition: width 0.5s, height 0.5s;
}
.button:hover::before {
width: 300%;
height: 300%;
}