Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS font Property Animation</title> <style> .animated { -webkit-animation: test 4s infinite; /* Chrome, Safari, Opera */ animation: test 4s infinite; } /* Chrome, Safari, Opera */ @-webkit-keyframes test { 50% {font: 42px bold;} } /* Standard syntax */ @keyframes test { 50% {font: 42px bold;} } </style> </head> <body> <p><strong>Warning:</strong> CSS Animations do not work in Internet Explorer 9 and earlier versions.</p> <p><strong>Note:</strong> Among all the individual font properties only the font-size, font-weight, font-stretch, and line-height properties are animatable in CSS. See the CSS <a href="https://www.tutorialrepublic.com/css-reference/css-font-property.php" target="_top">font</a> shorthand property for details.<p> <p class="animated">This is an animated paragraph.</p> </body> </html>