<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="row">
<div class="row">
<div class="block">
<a href="https://www.xbootstrap.com/"><i class="hoverbtn effect-5 sub-a">Hover Over</i></a>
</div>
<div class="block">
<i class="hoverbtn effect-6">Hover Over</i>
</div>
<div class="block">
<i class="hoverbtn effect-7 sub-a">Hover Over</i>
</div>
<div class="block">
<i class="hoverbtn effect-7 sub-b">Hover Over</i>
</div>
</div>
<div class="row">
<div class="block">
<i class="hoverbtn effect-8">Hover Over</i>
</div>
<div class="block">
<i class="hoverbtn effect-9 sub-a">Hover Over</i>
</div>
<div class="block">
<i class="hoverbtn effect-9 sub-b">Hover Over</i>
</div>
<div class="block">
<i class="hoverbtn effect-1 sub-a">Hover Over
</i>
</div>
</div>
<div class="block">
<i class="hoverbtn effect-1 sub-a">Hover Over</i>
</div>
<div class="block">
<i class="hoverbtn effect-1 sub-b">Hover Over</i>
</div>
<div class="block">
<i class="hoverbtn effect-2 sub-a">Hover Over</i>
</div>
<div class="block">
<i class="hoverbtn effect-2 sub-b">Hover Over</i>
</div>
</div>
<div class="row">
<div class="block">
<i class="hoverbtn effect-3 sub-a">Hover Over</i>
</div>
<div class="block">
<i class="hoverbtn effect-3 sub-b">Hover Over</i>
</div>
<div class="block">
<i class="hoverbtn effect-4 sub-a" style="margin-right:10px;">Hover Over</i>
</div>
<div class="block">
<a href="https://www.xbootstrap.com/" ><i class="hoverbtn effect-4 sub-b">Hover Over</i></a>
</div>
</div>
</div>
body {
background: #292929;
padding-left: 30px;
}
.row {
float: left;
width: 100%;
}
.row .block {
float: left;
width: 25%;
height: 150px;
}
.hoverbtn {
display: inline-block;
font-size: 18px;
font-weight:400;
line-height: 90px;
cursor: pointer;
margin: 20px;
width: 100%;
font-family:"Roboto";
height: 90px;
text-align: center;
position: relative;
text-decoration: none;
z-index: 1;
color: #fff;
}
.hoverbtn.small {
font-size: 20px;
line-height:45px;
width:100%;
height:45px;
margin:7px;
}
.hoverbtn.mini {
font-size: 15px;
line-height:32px;
width:100%;
height:30px;
margin:7px;
}
.hoverbtn.auto-width {
width: auto;
height: auto;
padding: 15px;
}
.hoverbtn:after {
pointer-events: none;
position: absolute;
width: 100%;
height: 100%;
content:'';
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.hoverbtn:before {
speak: none;
font-size: 48px;
line-height: 90px;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
display: block;
-webkit-font-smoothing: antialiased;
}
/* Effect 1 */
.hoverbtn.effect-1 {
background: rgba(255, 255, 255, 0.1);
-webkit-transition: background 0.2s, color 0.2s;
-moz-transition: background 0.2s, color 0.2s;
transition: background 0.2s, color 0.2s;
}
.hoverbtn.effect-1:after {
top: -7px;
left: -7px;
padding: 7px;
box-shadow: 0 0 0 4px #fff;
-webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
-webkit-transform: scale(.8);
-moz-transition: -moz-transform 0.2s, opacity 0.2s;
-moz-transform: scale(.8);
-ms-transform: scale(.8);
transition: transform 0.2s, opacity 0.2s;
transform: scale(.8);
opacity: 0;
}
/* Effect 1a */
.hoverbtn.effect-1.sub-a:hover {
background: rgba(255, 255, 255, 1);
color: #41ab6b;
}
.hoverbtn.effect-1.sub-a:hover i {
color: #41ab6b;
}
.hoverbtn.effect-1.sub-a:hover:after {
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
opacity: 1;
}
/* Effect 1b */
.hoverbtn.effect-1.sub-b:hover {
background: rgba(255, 255, 255, 1);
color: #41ab6b;
}
.hoverbtn.effect-1.sub-b:hover i {
color: #41ab6b;
}
.hoverbtn.effect-1.sub-b:after {
-webkit-transform: scale(1.2);
-moz-transform: scale(1.2);
-ms-transform: scale(1.2);
transform: scale(1.2);
}
.hoverbtn.effect-1.sub-b:hover:after {
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
opacity: 1;
}
/* Effect 2 */
.hoverbtn.effect-2 {
color: #eea303;
box-shadow: 0 0 0 3px #fff;
-webkit-transition: color 0.3s;
-moz-transition: color 0.3s;
transition: color 0.3s;
}
.hoverbtn.effect-2:after {
top: -2px;
left: -2px;
padding: 2px;
z-index: -1;
background: #fff;
-webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
-moz-transition: -moz-transform 0.2s, opacity 0.2s;
transition: transform 0.2s, opacity 0.2s;
}
/* Effect 2a */
.hoverbtn.effect-2.sub-a:hover, .hoverbtn.effect-2.sub-a:hover i {
color: #eea303;
}
.hoverbtn.effect-2.sub-a:hover:after {
-webkit-transform: scale(0.85);
-moz-transform: scale(0.85);
-ms-transform: scale(0.85);
transform: scale(0.85);
}
/* Effect 2b */
.hoverbtn.effect-2.sub-b:hover:after {
-webkit-transform: scale(0);
-moz-transform: scale(0);
-ms-transform: scale(0);
transform: scale(0);
opacity: 0;
-webkit-transition: -webkit-transform 0.4s, opacity 0.2s;
-moz-transition: -moz-transform 0.4s, opacity 0.2s;
transition: transform 0.4s, opacity 0.2s;
}
.hoverbtn.effect-2.sub-b:hover, .hoverbtn.effect-2.sub-b:hover i {
color: #fff;
}
/* Effect 3 */
.hoverbtn.effect-3 {
box-shadow: 0 0 0 4px #fff;
-webkit-transition: color 0.3s;
-moz-transition: color 0.3s;
transition: color 0.3s;
}
.hoverbtn.effect-3:after {
top: -2px;
left: -2px;
padding: 2px;
z-index: -1;
background: #fff;
-webkit-transition: -webkit-transform 0.2s, opacity 0.3s;
-moz-transition: -moz-transform 0.2s, opacity 0.3s;
transition: transform 0.2s, opacity 0.3s;
}
/* Effect 3a */
.hoverbtn.effect-3.sub-a, .hoverbtn.effect-3.sub-a i {
color: #f06060;
}
.hoverbtn.effect-3.sub-a:hover, .hoverbtn.effect-3.sub-a:hover i {
color: #fff;
}
.hoverbtn.effect-3.sub-a:hover:after {
-webkit-transform: scale(1.3);
-moz-transform: scale(1.3);
-ms-transform: scale(1.3);
transform: scale(1.3);
opacity: 0;
}
/* Effect 3b */
.hoverbtn.effect-3.sub-b, .hoverbtn.effect-3.sub-b i {
color: #fff;
}
.hoverbtn.effect-3.sub-b:hover, .hoverbtn.effect-3.sub-b:hover i {
color: #f06060;
}
.hoverbtn.effect-3.sub-b:after {
-webkit-transform: scale(1.3);
-moz-transform: scale(1.3);
-ms-transform: scale(1.3);
transform: scale(1.3);
opacity: 0;
}
.hoverbtn.effect-3.sub-b:hover:after {
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
opacity: 1;
}
/* Effect 4 */
.hoverbtn.effect-4 {
width: 92px;
height: 92px;
box-shadow: 0 0 0 4px rgba(255, 255, 255, 1);
}
.hoverbtn.effect-4.small {
width:45px;
height:45px;
}
.hoverbtn.effect-4.mini {
width:30px;
height:30px;
}
.hoverbtn.effect-4.sub-a {
-webkit-transition: box-shadow 0.2s;
-moz-transition: box-shadow 0.2s;
transition: box-shadow 0.2s;
}
.hoverbtn.effect-4:before {
line-height: 92px;
}
.hoverbtn.effect-4:after {
top: -4px;
left: -4px;
padding: 0;
z-index: 10;
border: 4px dashed #fff;
}
.hoverbtn.effect-4:hover {
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
color: #fff;
}
.hoverbtn.effect-4:hover i {
color: #fff;
}
/* Effect 4b */
.hoverbtn.effect-4.sub-b:hover {
-webkit-transition: box-shadow 0.2s;
-moz-transition: box-shadow 0.2s;
transition: box-shadow 0.2s;
}
.hoverbtn.effect-4.sub-b:hover:after {
-webkit-animation: spinAround 9s linear infinite;
-moz-animation: spinAround 9s linear infinite;
animation: spinAround 9s linear infinite;
}
@-webkit-keyframes spinAround {
from {
-webkit-transform: rotate(0deg)
}
to {
-webkit-transform: rotate(360deg);
}
}
@-moz-keyframes spinAround {
from {
-moz-transform: rotate(0deg)
}
to {
-moz-transform: rotate(360deg);
}
}
@keyframes spinAround {
from {
transform: rotate(0deg)
}
to {
transform: rotate(360deg);
}
}
/* Effect 5 */
.hoverbtn.effect-5 {
box-shadow: 0 0 0 4px rgba(255, 255, 255, 1);
overflow: hidden;
-webkit-transition: background 0.3s, color 0.3s, box-shadow 0.3s;
-moz-transition: background 0.3s, color 0.3s, box-shadow 0.3s;
transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.hoverbtn.effect-5:after {
display: none;
}
.hoverbtn.effect-5:hover {
background: rgba(255, 255, 255, 1);
color: #702fa8;
box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.3);
}
.hoverbtn.effect-5:hover i {
color: #702fa8;
}
.hoverbtn.effect-5.sub-a:hover:before {
-webkit-animation: toRightFromLeft 0.3s forwards;
-moz-animation: toRightFromLeft 0.3s forwards;
animation: toRightFromLeft 0.3s forwards;
}
@-webkit-keyframes toRightFromLeft {
49% {
-webkit-transform: translate(100%);
}
50% {
opacity: 0;
-webkit-transform: translate(-100%);
}
51% {
opacity: 1;
}
}
@-moz-keyframes toRightFromLeft {
49% {
-moz-transform: translate(100%);
}
50% {
opacity: 0;
-moz-transform: translate(-100%);
}
51% {
opacity: 1;
}
}
@keyframes toRightFromLeft {
49% {
transform: translate(100%);
}
50% {
opacity: 0;
transform: translate(-100%);
}
51% {
opacity: 1;
}
}
.hoverbtn.effect-5.sub-b:hover:before {
-webkit-animation: toLeftFromRight 0.3s forwards;
-moz-animation: toLeftFromRight 0.3s forwards;
animation: toLeftFromRight 0.3s forwards;
}
@-webkit-keyframes toLeftFromRight {
49% {
-webkit-transform: translate(-100%);
}
50% {
opacity: 0;
-webkit-transform: translate(100%);
}
51% {
opacity: 1;
}
}
@-moz-keyframes toLeftFromRight {
49% {
-moz-transform: translate(-100%);
}
50% {
opacity: 0;
-moz-transform: translate(100%);
}
51% {
opacity: 1;
}
}
@keyframes toLeftFromRight {
49% {
transform: translate(-100%);
}
50% {
opacity: 0;
transform: translate(100%);
}
51% {
opacity: 1;
}
}
.hoverbtn.effect-5.sub-c:hover:before {
-webkit-animation: toTopFromBottom 0.3s forwards;
-moz-animation: toTopFromBottom 0.3s forwards;
animation: toTopFromBottom 0.3s forwards;
}
@-webkit-keyframes toTopFromBottom {
49% {
-webkit-transform: translateY(-100%);
}
50% {
opacity: 0;
-webkit-transform: translateY(100%);
}
51% {
opacity: 1;
}
}
@-moz-keyframes toTopFromBottom {
49% {
-moz-transform: translateY(-100%);
}
50% {
opacity: 0;
-moz-transform: translateY(100%);
}
51% {
opacity: 1;
}
}
@keyframes toTopFromBottom {
49% {
transform: translateY(-100%);
}
50% {
opacity: 0;
transform: translateY(100%);
}
51% {
opacity: 1;
}
}
.hoverbtn.effect-5.sub-d:hover:before {
-webkit-animation: toBottomFromTop 0.3s forwards;
-moz-animation: toBottomFromTop 0.3s forwards;
animation: toBottomFromTop 0.3s forwards;
}
@-webkit-keyframes toBottomFromTop {
49% {
-webkit-transform: translateY(100%);
}
50% {
opacity: 0;
-webkit-transform: translateY(-100%);
}
51% {
opacity: 1;
}
}
@-moz-keyframes toBottomFromTop {
49% {
-moz-transform: translateY(100%);
}
50% {
opacity: 0;
-moz-transform: translateY(-100%);
}
51% {
opacity: 1;
}
}
@keyframes toBottomFromTop {
49% {
transform: translateY(100%);
}
50% {
opacity: 0;
transform: translateY(-100%);
}
51% {
opacity: 1;
}
}
/* Effect 6 */
.hoverbtn.effect-6 {
box-shadow: 0 0 0 4px rgba(255, 255, 255, 1);
-webkit-transition: background 0.2s, color 0.2s;
-moz-transition: background 0.2s, color 0.2s;
transition: background 0.2s, color 0.2s;
}
.hoverbtn.effect-6:hover {
background: rgba(255, 255, 255, 1);
color: #64bb5d;
}
.hoverbtn.effect-6:hover i {
color: #64bb5d;
}
.hoverbtn.effect-6:hover:before {
-webkit-animation: spinAround 2s linear infinite;
-moz-animation: spinAround 2s linear infinite;
animation: spinAround 2s linear infinite;
}
/* Effect 7 */
.hoverbtn.effect-7 {
box-shadow: 0 0 0 4px rgba(255, 255, 255, 1);
-webkit-transition: background 0.2s, color 0.2s;
-moz-transition: background 0.2s, color 0.2s;
transition: background 0.2s, color 0.2s;
}
.hoverbtn.effect-7:hover, .hoverbtn.effect-7:hover i {
color: #fff;
}
.hoverbtn.effect-7:after {
top: -8px;
left: -8px;
padding: 8px;
z-index: -1;
opacity: 0;
}
/* Effect 7a */
.hoverbtn.effect-7.sub-a:after {
box-shadow: 0 0 0 rgba(255, 255, 255, 1);
-webkit-transition: opacity 0.2s, box-shadow 0.2s;
-moz-transition: opacity 0.2s, box-shadow 0.2s;
transition: opacity 0.2s, box-shadow 0.2s;
}
.hoverbtn.effect-7.sub-a:hover:after {
opacity: 1;
box-shadow: 3px 3px 0 rgba(255, 255, 255, 1);
}
.hoverbtn.effect-7.sub-a:before {
-webkit-transform: scale(0.8);
-moz-transform: scale(0.8);
-ms-transform: scale(0.8);
transform: scale(0.8);
opacity: 0.7;
-webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
-moz-transition: -moz-transform 0.2s, opacity 0.2s;
transition: transform 0.2s, opacity 0.2s;
}
.hoverbtn.effect-7.sub-a:hover:before {
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
opacity: 1;
}
/* Effect 7b */
.hoverbtn.effect-7.sub-b:after {
box-shadow: 3px 3px rgba(255, 255, 255, 1);
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
-webkit-transition: opacity 0.2s, -webkit-transform 0.2s;
-moz-transition: opacity 0.2s, -moz-transform 0.2s;
transition: opacity 0.2s, transform 0.2s;
}
.hoverbtn.effect-7.sub-b:hover:after {
opacity: 1;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
.hoverbtn.effect-7.sub-b:before {
-webkit-transform: scale(0.8);
-moz-transform: scale(0.8);
-ms-transform: scale(0.8);
transform: scale(0.8);
opacity: 0.7;
-webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
-moz-transition: -moz-transform 0.2s, opacity 0.2s;
transition: transform 0.2s, opacity 0.2s;
}
.hoverbtn.effect-7.sub-b:hover:before {
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
opacity: 1;
}
/* Effect 8 */
.hoverbtn.effect-8 {
background: rgba(255, 255, 255, 0.1);
-webkit-transition: -webkit-transform ease-out 0.1s, background 0.2s;
-moz-transition: -moz-transform ease-out 0.1s, background 0.2s;
transition: transform ease-out 0.1s, background 0.2s;
}
.hoverbtn.effect-8:after {
top: 0;
left: 0;
padding: 0;
z-index: -1;
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
opacity: 0;
-webkit-transform: scale(0.9);
-moz-transform: scale(0.9);
-ms-transform: scale(0.9);
transform: scale(0.9);
}
.hoverbtn.effect-8:hover {
background: rgba(255, 255, 255, 0.05);
-webkit-transform: scale(0.93);
-moz-transform: scale(0.93);
-ms-transform: scale(0.93);
transform: scale(0.93);
color: #fff;
}
.hoverbtn.effect-8:hover i {
color: #fff;
}
.hoverbtn.effect-8:hover:after {
-webkit-animation: sonarEffect 1.3s ease-out 75ms;
-moz-animation: sonarEffect 1.3s ease-out 75ms;
animation: sonarEffect 1.3s ease-out 75ms;
}
@-webkit-keyframes sonarEffect {
0% {
opacity: 0.3;
}
40% {
opacity: 0.5;
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc, 0 0 0 10px rgba(255, 255, 255, 0.5);
}
100% {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc, 0 0 0 10px rgba(255, 255, 255, 0.5);
-webkit-transform: scale(1.5);
opacity: 0;
}
}
@-moz-keyframes sonarEffect {
0% {
opacity: 0.3;
}
40% {
opacity: 0.5;
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc, 0 0 0 10px rgba(255, 255, 255, 0.5);
}
100% {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc, 0 0 0 10px rgba(255, 255, 255, 0.5);
-moz-transform: scale(1.5);
opacity: 0;
}
}
@keyframes sonarEffect {
0% {
opacity: 0.3;
}
40% {
opacity: 0.5;
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc, 0 0 0 10px rgba(255, 255, 255, 0.5);
}
100% {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc, 0 0 0 10px rgba(255, 255, 255, 0.5);
transform: scale(1.5);
opacity: 0;
}
}
/* Effect 9 */
.hoverbtn.effect-9 {
-webkit-transition: box-shadow 0.2s;
-moz-transition: box-shadow 0.2s;
transition: box-shadow 0.2s;
}
.hoverbtn.effect-9:after {
top: 0;
left: 0;
padding: 0;
box-shadow: 0 0 0 3px #fff;
-webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
-moz-transition: -moz-transform 0.2s, opacity 0.2s;
transition: transform 0.2s, opacity 0.2s;
}
/* Effect 9a */
.hoverbtn.effect-9.sub-a:hover:after {
-webkit-transform: scale(0.85);
-moz-transform: scale(0.85);
-ms-transform: scale(0.85);
transform: scale(0.85);
opacity: 0.5;
}
.hoverbtn.effect-9.sub-a:hover {
box-shadow: 0 0 0 10px rgba(255, 255, 255, 1);
color: #fff;
}
.hoverbtn.effect-9.sub-a:hover i {
color: #fff;
}
/* Effect 9b */
.hoverbtn.effect-9.sub-b:hover:after {
-webkit-transform: scale(0.85);
-moz-transform: scale(0.85);
-ms-transform: scale(0.85);
transform: scale(0.85);
}
.hoverbtn.effect-9.sub-b:hover {
box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.4);
color: #fff;
}
.hoverbtn.effect-9.sub-b:hover i {
color: #fff;
}