Perform Animation on CSS font-size property

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


Live Demo

<!DOCTYPE html>
         p {
            border: 2px solid black;
            width: 400px;
            height: 100px;
            animation: myanim 5s infinite;
         @keyframes myanim {
            70% {
               font-size: 30px;
      <p>This is demo text</p>
Samual Sam
Samual Sam

Learning faster. Every day.