<html>
<head>
<style>
#myDIV {
width: 300px;
height: 200px;
border: 1px solid black;
background-image: url('smiley.gif');
background-position-x: left;
animation: mymove 5s infinite;
}
@keyframes mymove {
50% {background-position-x: center;}
}
</style>
</head>
<body>
<h1>Animation of background-position-x</h1>
<p>Gradually change the background-position-x from "left" to "center", and back to "left":<p>
<div id="myDIV"></div>
</body>
</html>