<html>
<head>
<style>
#myDIV {
background-color: lightblue;
border: 1px solid black;
animation: mymove 5s infinite;
}
@keyframes mymove {
50% {padding-left: 50px;}
}
</style>
</head>
<body>
<h1>Animation of padding-left</h1>
<p>Gradually change the padding-left 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>
<p><strong>Note:</strong> CSS Animations do not work in Internet Explorer 9 and earlier versions.</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_anim_padding-left by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:36:21 GMT -->
</html>