Pulse Animation Using HTML & CSS3.
Pulse Animation Using
HTML & CSS3.
Pulse.html
<!DOCTYPE html>
<html>
<head>
<title>Css Pulse animaton</title>
<link rel="Stylesheet" type="text/css" href="Style.css">
</head>
<body>
<div class="center">
<div class="Pulse">Pulse</div>
</div>
</body>
</html>
=========================================================================
=========================================================================
Style.css
body
{
margin: 0px;
padding: 0px;
background-color:#3c3c3c;
}
.center
{
position: absolute;
top:45%;
left:50%;
transform: translate(-50%,-50%);
}
.Pulse
{
height: 100px;
width: 100px;
background: rgb(0,129,201);
color:#fff;
font-size: 40px;
text-align: center;
border-radius: 50%;
line-height: 100px;
font-family: chiller;
text-transform: uppercase;
animation:animate 3s linear infinite;
}
@keyframes animate
{
0%
{
box-shadow: 0 0 0 0 rgba(0,129,201,0.8),0 0 0 0 rgba(0,129,201,0.8);
}
40%
{
box-shadow: 0 0 0 50px rgba(0,129,201,0),0 0 0 0 rgba(0,129,201,0.8);
}
80%
{
box-shadow: 0 0 0 50px rgba(0,129,201,0),0 0 0 40px rgba(0,129,201,0);
}
100%
{
box-shadow: 0 0 0 0 rgba(0,129,201.0.8),0 0 0 40px rgba(0,129,201,0);
}
}
Comments
Post a Comment