Computer Science, asked by Geetesh2003, 1 year ago

Write HTML &CSS code for blinking text

Answers

Answered by Brainlyshchay
2

<html>

 <head>

   <title>Blinking text | nishchay</title>

   <style>

   @keyframes blink {

 0% { opacity: 1 }

 50% { opacity: 0 }

}

.blink {

 color: limegreen;

 animation: blink 1s infinite;

 

}

     body {

       font-family: Arial;

     }

     .center {

       text-align: center;

     }

     hr.cntrct {

       width: 50%;

       align-text: center;

       

     }

     h2 {

       text-align: center;

     }

   </style>

 </head>

 <body>

   <h1 class="center">How to make blinking text using HTML and CSS only</h1>

   <hr class="cntrct">

   <h2 class="blink">This text is blinking</h2>

   

 </body>

</html>

Attachments:
Similar questions