Perform Animation on CSS font-size property

CSSWeb DevelopmentFront End Technology

To implement animation on the font-size 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-size: 30px;
            }
         }
      </style>
   </head>
   <body>
      <p>This is demo text</p>
   </body>
</html>
raja
Published on 31-May-2018 10:43:17
Advertisements