Perform Animation on CSS font property


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>

Updated on: 25-Jun-2020

104 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements