CSS button animation on hover and keyframes | GS CODE

Step 1) Add HTML:​​

<!DOCTYPE html>
<!-- code by gscode -->
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.10.2/css/all.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.10.2/css/v4-shims.css"
<title></title>
</head>
<body>

</body>
</html>

Step 2) Add CSS CODE IN style tag​

<style media="screen">
/* code by gscode */
@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');

*{
background: #4d85bd;
}
.button,.button1{
display: inline;
padding: 20px;
width: 100px;
position: absolute;
left: 45%;
top:50%;
background-color: #ffdb5c;
text-align: center;
text-size:20px;
font-family: inherit;
cursor: pointer;
}

.button1{
background-color: #fa6ed9;
box-shadow: 10px 10px 8px;
}
.art:hover .button{
-webkit-transform:rotate(-75deg);
transform: rotate(-75deg);
}
.button{
z-index: 11;
transition: 1000ms cubic-bezier(0.89,0.03,0.06,1.5);
-webkit-transform-origin:top right;
transform-origin: top right;
}
a,span,div{
font-family: 'Montserrat',sans-serif;
text-transform: uppercase;
color: #000;
text-decoration-style: solid;
text-decoration-color: #ffdb5c;
font-size: 20px;
font-weight: bold;
}
.content-box{
display: inline;
position: absolute;
top:80%;
left: 40%;
}
.fa-heartbeat{
animation: heart 1s infinite;
}
i{
background: none;
}
@keyframes heart {
0%{
transform: scale(.75);
}
20%{
transform: scale(1);
}
40%{
transform: scale(.75);
}
60%{
transform: scale(1);
}
80%{
transform: scale(.75);
}
100%{
transform: scale(.75);
}

}

</style>

[everest_form id=”287″]

gscode
No Comments
Posted in:
Hover effect