Perform Animation on CSS font property

CSSWeb DevelopmentFront End Technology

To implement animation on font 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: 35px arial, sans-serif;
            }
         }
      </style>
   </head>
   <body>
      <p>This is demo text</p>
   </body>
</html>
raja
Published on 07-Jun-2018 12:39:49
Advertisements