Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> CSS

Thực hiện hoạt ảnh trên thuộc tính CSS font-size


Để tạo hoạt ảnh cho thuộc tính font-size với CSS, bạn có thể chạy mã sau:

Ví dụ

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