-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgradientBtn.css
More file actions
47 lines (40 loc) · 867 Bytes
/
Copy pathgradientBtn.css
File metadata and controls
47 lines (40 loc) · 867 Bytes
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
body {
margin : 0;
padding : 0;
background: #f1f1f1;
}
.container {
position : absolute;
left : 50%;
top : 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.btn {
border: none;
margin : 20px;
padding: 24px;
width: 220px;
font-family : "monsterrat", sans-serif;
text-transform: uppercase;
border-radius : 6px;
cursor : pointer;
color : #fff;
background-size : 200%;
transition : 0.6s;
}
.btn1 {
background-image: linear-gradient(to left, #FFC312, #EE5A24, #FFC312);
}
.btn2 {
background-image: linear-gradient(to left, #74b9ff, #0984e3, #74b9ff);
}
.btn3 {
background-image: linear-gradient(to left, #55efc4, #00b894, #55efc4);
}
.btn4 {
background-image: linear-gradient(to left, #fab1a0, #e84393, #fab1a0);
}
.btn:hover {
background-position: right;
}