How to Create a Glowing Text using CSS

How to Create a Glowing Text using CSS

 

Step 1: Adding text to HTML
<h1 class="glow">This is an example of glowing text</h1>
Step 2 : Defining Colors and Effects in CSS
body {
  background-color: black;
  font-family: arial;
}

.glow {
  font-size: 80px;
  color: #fff;
  text-align: center;
  animation: glow 1s ease-in-out infinite alternate;
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #008000, 0 0 40px #008000, 0 0 50px #008000, 0 0 60px #008000, 0 0 70px #e60073;
  }
  
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
  }
}

 

Full Code and Output :

 

How to Create a Glowing Text using CSS
You may Also Like
Scroll to top