Computer >> คอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

ทำแอนิเมชั่นบนคุณสมบัติขนาดฟอนต์ CSS


การนำแอนิเมชั่นไปใช้กับ ขนาดฟอนต์ คุณสมบัติด้วย CSS คุณสามารถลองเรียกใช้โค้ดต่อไปนี้ได้

ตัวอย่าง

<!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>