I am looking to create a responsive version of the animation in this fiddle (link provided below). I want the animation to be 100% wide and have a height of 500px. However, when I adjust the width to 100%, it causes issues at the end of the animation. Can someone guide me on how to create a simple animation like this that works across browsers, seamlessly display with a width of 100%, and allows for adjustable height using media queries?
Here is my code: http://jsfiddle.net/hkJsm/
<div id="logo"></div>
CSS:
@-webkit-keyframes slide {
from{
background-position:575px;
}
to{
background-position:1725px;
}
}
#logo{
text-align:center;
width:575px;
height:200px;
background:url(http://f.cl.ly/items/0g3q1A203t2A2m182i1k/newbg.png);
-webkit-animation: slide 10s linear infinite;
}
Thank you for your assistance!