Perform Animation on CSS Font-Weight Property



To implement animation on font-weight property with CSS, you can try to run the following code

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <style>
         p {
            border: 2px solid black;
            width: 400px;
            height: 100px;
            animation: myanim 5s infinite;
         }
         @keyframes myanim {
            70% {
               font-weight: bold;
            }
         }
      </style>
   </head>
   <body>
      <p>This is demo text</p>
   </body>
</html>
Updated on: 2020-06-25T07:24:53+05:30

474 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements