<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
p{
font-weight: 900;
animation: myAnimation 1s infinite;
-webkit-animation: myAnimation 1s infinite; /* Safari 4.0 - 8.0 */
}
@keyframes myAnimation {
50% {
font-weight: 100;
}
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes myAnimation {
50% {
font-weight: 100;
font-stretch:expanded;
}
}
</style>
</head>
<body>
<h1>CSS Animatable font-weight</h1>
<p>This is paragraph</p> </body>
</html>