-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
128 lines (92 loc) · 1.89 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
background: #1a1a1a;
}
.btn {
display: block;
text-decoration: none;
text-transform: uppercase;
font-size: 11px;
font-weight: bold;
color: #fff;
margin: 0 15px;
padding: 10px 35px;
border: 2px solid #5fe36a;
overflow: hidden;
position: relative;
}
.btn::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 100%;
height: 100%;
background-color: #5fe36a;
z-index: -1;
transition: .7s ease;
}
/* ----------------- btn1 ----------------- */
.btn1::before {
width: 0;
height: 100%;
}
.btn1:hover::before {
width: 110%;
}
/* ----------------- btn2 ----------------- */
.btn2::before {
width: 110%;
height: 0;
}
.btn2:hover::before {
height: 110%;
}
/* ----------------- btn3 ----------------- */
.btn3::before {
width: 110%;
height: 0;
transform: translate(-50%,-50%) rotate(45deg);
}
.btn3:hover::before {
height: 350%;
}
/* ----------------- btn4 ----------------- */
.btn4::before {
width: 110%;
height: 0;
transform: translate(-50%,-50%) rotate(-45deg);
}
.btn4:hover::before {
height: 350%;
}
/* ----------------- btn5 ----------------- */
.btn5::before {
width: 110%;
height: 0;
border-radius: 50%;
}
.btn5:hover::before {
height: 350%;
}
/* ----------------- responsivo ----------------- */
@media(max-width: 700px) {
body {
flex-direction: column;
}
.btn {
margin: 20px 15px;
padding: 10px 35px;
}
}