-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglow_button.css
84 lines (76 loc) · 1.42 KB
/
glow_button.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
*{
margin:0;
padding:0;
box-sizing:border-box;
}
.glow-btn{
display: flex;
justify-content: center;
align-items: center;
/* min-height: 100vh; */
/* background: #27282c; */
}
.glow-btn-child {
position: relative;
background: #444;
color: #fff;
text-decoration: none;
text-transform: uppercase;
font-size: 24px;
letter-spacing: 0.1em;
padding: 10px 30px;
transition:0.5s ;
}
.glow-btn-child:hover{
letter-spacing: 0.2em;
background: var(--clr);
color: var(--clr);
box-shadow: 0 0 35px var(--clr);
}
.glow-btn-child::before{
content: '';
position: absolute;
inset: 2px;
background: #27282c;
}
.glow-btn-child .glow-btn-subchild{
position: relative;
z-index: 1;
}
.glow-btn-child .i{
position: absolute;
inset: 0;
display: block;
}
.glow-btn-child .i::before{
content: '';
position: absolute;
top: -3.5px;
left: 80%;
width: 10px;
height: 5px;
border: 2px solid var(--clr);
transform: translateX(-50%);
background: #27282c;
transition: 0.5s;
}
.glow-btn-child:hover .i::before{
width: 20px;
left: 20%;
}
.glow-btn-child .i::after{
content: '';
position: absolute;
bottom: -3.5px;
left: 20%;
width: 10px;
height: 5px;
border: 2px solid var(--clr);
transform: translateX(-50%);
background: #27282c;
transition: 0.5s;
}
.glow-btn-child:hover .i::after{
width: 20px;
left: 80%;
}