<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
.text-glow {
color: white;
font-size: 30px;
text-align: center;
animation: glow 1s ease-in-out infinite alternate;
}
.container {
background-color: black;
height: 400px;
width: 400px;
padding: 50px;
}
@keyframes glow {
from{
text-shadow: 0 0 10px #0fa, 0 0 20px #0fa, 0 0 30px #0fa, 0 0 40px #0fa,0 0 50px #0fa;
}
to {
text-shadow: 0 0 60px #0fa, 0 0 70px #0fa;
}
}
</style>
</head>
<body>
<div class="container">
<div class="text-glow">
<h2> Text Glow </h2>
<p> We have successfully created animating glowing text </p>
</div>
</div>
</body>
</html>