<html>
<head>
<style>
#myDIV {
background-color: lightblue;
border: 1px solid black;
animation: mymove 5s infinite;
}
@keyframes mymove {
50% {padding-right: 150px;}
}
</style>
</head>
<body>
<h1>Animation of padding-right</h1>
<p>Gradually change the padding-right from 0px to 150px, and back to 0px:<p>
<div id="myDIV">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat...
</div>
</body>
</html>