-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathstyle.css
56 lines (56 loc) · 1.03 KB
/
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
51
52
53
54
55
56
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: black;
}
.btn{
width: 10rem;
height: 4rem;
position: relative;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.btn button{
position: absolute;
width: 100%;
height: 100%;
border: none;
background: rgba(255, 255, 255, 0);
backdrop-filter: blur(20px);
color: rgba(0, 0, 0, 0.884);
cursor: pointer;
font-size: .95em;
transition: all .4s;
border-radius: 20px;
}
.btn button:hover{
color: white;
}
.element,.elements{
content: '';
position: absolute;
top: 10%;
left: -1.5%;
width: 100%;
height: 100%;
background: none;
z-index: -2;
border: 5px solid violet;
border-radius: 20px;
transition: all .4s;
}
.btn button:hover ~ .element{
background: gold;
border: 5px solid gold;
top: -10%;
left: 1.5%;
}