-
Notifications
You must be signed in to change notification settings - Fork 2
/
Button Hover.css
105 lines (91 loc) · 1.86 KB
/
Button Hover.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
@import url("https://fonts.googleapis.com/css?family=Mukta:700");
body{
font-family: 'Mukta', sans-serif;
min-height:100vh;
font-size: 16px;
margin:0;
}
.wrapper{
position: absolute;
top:35%;
left:50%;
transform: translate(-50%, 50%);
}
button{
position: relative;
display: inline-block;
cursor: pointer;
outline: none;
border:0;
padding: 0;
background:transparent;
font-family: inherit;
font-size:inherit;
}
button.learn-more{
width: 192px;
}
button.learn-more .circle{
position:relative;
width:48px;
height:48px;
border-radius: 26px;
background: #282936;
display: block;
transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
-webkit-transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}
.icon{
position: absolute;
display: block;
top: -2.25px;
bottom: 0;
margin: auto;
background: #fff;
transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
-webkit-transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}
.arrow{
left: 10px;
width: 19px;
height:3px;
background:none;
transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
-webkit-transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}
.icon.arrow::before{
position: absolute;
content: '';
top: -4px;
right: 1px;
width: 10px;
height:10px;
border-top: 2px solid #fff;
border-right: 2px solid #fff;
transform: rotate(45deg);
-webkit-transform:rotate(45deg);
}
.text{
position: absolute;
top: -1.25px;
left: 0;
right: 0;
bottom: 0;
padding: 12px 0;
margin: 0 0 0 29.6px;
color: #282936;
font-weight:700;
text-transform: uppercase;
}
button:hover .circle{
width: 100%;
}
button:hover .arrow{
background:#fff;
transform: translate(16px, 0);
-webkit-transform: translate(16px, 0);
}
button:hover .text{
color:#fff;
}
/*Color Name : Black Rock & Thanks For Watching!!!*/