-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButton-Border.css
More file actions
65 lines (55 loc) · 1.23 KB
/
Button-Border.css
File metadata and controls
65 lines (55 loc) · 1.23 KB
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
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900&displayer=swap');
#button-border{
margin: 0;
padding: 0;
height: 50vh;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
font-family: 'Poppins', sans-serif;
}
#button-border a {
position: relative;
display: inline-block;
padding: 15px 30px;
border: 2px solid #111;
text-transform: uppercase;
color: #111;
text-decoration: none;
font-weight: 600;
font-size: 20px;
}
#button-border a::before{
content: "";
position: absolute;
top: 6px;
left: -2px;
width: calc(100% + 4px);
height: calc(100% - 12px);
background: #fff;
transition: 0.5s ease-in-out;
transform: scaleY(1);
transition-delay: 0.5s;
}
#button-border a:hover::before{
transform: scaleY(0);
}
#button-border a::after{
content: "";
position: absolute;
left: 6px;
top: -2px;
height: calc(100% + 4px);
width: calc(100% - 12px);
background: #fff;
transition: 0.5s ease-in-out;
transform: scaleX(1)
}
#button-border a:hover::after{
transform: scaleX(0);
}
#button-border a span {
position: relative;
z-index: 3;
}