Text animation Source codes:
<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
<title> Text Animation </title>
<style type=”text/css”>
*{
padding: 0;
margin: 0;
font-family:fantasy ;
}
body{
background: black;
}
.container{
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
}
.container span{
text-transform: uppercase;
display: block;
}
.text{
background-image: url(“bg.jpg”);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
font-size: 50px;
font-weight: 700;
letter-spacing: 8px;
margin-bottom: 20px;
position: relative;
animation-name: text;
animation-duration: 4s;
animation-iteration-count: infinite;
}
@keyframes text{
0%{
color: black;
margin-bottom: -40px;
}
30%{
letter-spacing: 25px;
margin-bottom: -40px;
}
85%{
letter-spacing: 8px;
margin-bottom: -40px;
}
100%{
margin-bottom: 20px;
}
}
</style>
</head>
<body>
<div class=”container”>
<span class=”text”>
Doolot-Tect
</span>
</div>
</body>
</html>