Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS font-size Property Animation</title> <style> .animated { font-size: 16px; -webkit-animation: test 4s infinite; /* Chrome, Safari, Opera */ animation: test 4s infinite; } /* Chrome, Safari, Opera */ @-webkit-keyframes test { 50% {font-size: 42px;} } /* Standard syntax */ @keyframes test { 50% {font-size: 42px;} } </style> </head> <body> <p><strong>Warning:</strong> CSS Animations do not work in Internet Explorer 9 and earlier versions.</p> <p><strong>Note:</strong> The font-size property of the following paragraph is animating from its initial value "16px" to "42px", and back to the initial value "16px" again up to infinite times.<p> <p class="animated">This is an animated paragraph.</p> </body> </html>