I am using css3 to animate sprite from the left to right, using Keyframes animation. Anyone help? How to fix this?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<style>
#adam{
background:url(adam.png);
width: 120px;
height: 180px;
animation: walk-east 1.0s steps(8) infinite;
}
@keyframes walk-east {
from { background-position: 0px; }
to { background-position: -960px; }
}
</style>
<body>
<div id="adam"></div>
<body>
</html>