<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
p{
line-height: 1;
animation: myAnimation 2s infinite;
-webkit-animation: myAnimation 2s infinite; /* Safari 4.0 - 8.0 */
}
@keyframes myAnimation {
50% {line-height: 6;}
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes myAnimation {
50% {line-height: 6;}
}
</style>
</head>
<body>
<h1>CSS Animatable line-height</h1>
<p>This is first paragraph</p>
<p>This is second paragraph</p> </body>
</html>