Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style> 
#myDIV {
  background-color: lightblue;
  border: 1px solid black;
  animation: mymove 5s infinite;
}
@keyframes mymove {
  50% {padding-top: 50px;}
}
</style>
</head>
<body>
<h1>Animation of padding-top</h1>
<p>Gradually change the padding-top from 0px to 50px, 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>