html
html
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
<!--Do not copy this code with or without credits.-->
<!DOCTYPE html>
<html>
<head>
<title>Button Hover Effects</title>
<!--Font awesome Cdn-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!--Google Fonts-->
<link href="https://fonts.googleapis.com/css?family=Poppins:400,500,600&display=swap" rel="stylesheet">
</head>
<body>
<div class="container c1">
<span class="subheading">Collection</span>
<span class="heading">BUTTON HOVER EFFECTS</span>
</div>
<div class="container c2">
<a class="button btn1">
<span>HOVER</span>
</a>
</div>
<div class="container c3">
<a class="button btn2">
<span>HOVER</span>
</a>
</div>
Enter to Rename, Shift+Enter to Preview
css
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
*,*::before,*::after{
padding: 0;
margin: 0;
}
.container:not(.c1){
width: 100vw;
height: 220px;
position: relative;
}
.c1{
background-color: #F06060;
text-align: center;
width: 100vw;
position: relative;
padding: 50px 0;
}
.c2{
background-color: #9E54BD;
}
.c3{
background-color: #0E83CD;
}
.c4{
background-color: #2AC56C;
}
.c5{
background-color: #FDD835;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run