Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Der Titel des Dokuments</title> <style> .element { border: 2px solid #666; width: 350px; height: 150px; font: 20px "Fira Sans", sans-serif; -webkit-animation: element 4s infinite; /* Chrome, Safari, Opera */ animation: element 4s infinite; } /* Chrome, Safari, Opera */ @-webkit-keyframes element { 50% {font: 50px bold;} } /* Standard syntax */ @keyframes element { 50% {font: 50px bold;} } </style> </head> <body> <h2>Ein Beispiel für Font animation</h2> <div class="element"> <p>Ein Absatz</p> </div> </body> </html>