<!DOCTYPE html>
<html>
<head>
<style>
#myDIV {
background-color: lightblue;
border: 1px solid black;
animation: mymove 5s infinite;
}
@keyframes mymove {
50% {padding-inline-end: 40%;}
}
</style>
</head>
<body>
<h1>Animation of padding-inline-end</h1>
<p>Gradually change the padding-inline-end from 0% to 40%, and back to 0%:<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>