-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbutton.css
48 lines (48 loc) · 882 Bytes
/
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
.container {
display: flex;
justify-content: center;
align-items: center;
align-content: center;
flex-wrap: wrap;
width: 60vw;
max-width: 1200px;
margin: 0 auto;
min-height: 10vh;
}
.button {
flex: 1 1 auto;
margin: 10px;
padding: 15px;
border: 2px solid #f7f7f7;
text-align: center;
text-transform: uppercase;
position: relative;
overflow: hidden;
transition: 0.3s;
font-family: cursive;
font-weight: bold;
}
.button:after {
position: absolute;
transition: 0.3s;
content: '';
width: 0;
left: 50%;
bottom: 0;
height: 3px;
background: #f7f7f7;
height: 120%;
left: -10%;
transform: skewX(15deg);
z-index: -1;
}
.button:hover {
cursor: pointer;
color: #5bcaff;
}
.button:hover:after {
width: 100%;
left: 0;
left: -10%;
width: 120%;
}