I'm currently working with the following code snippet:
Here is the CSS code being used:
@keyframes animatedBackground {
from { background-position: 0 0; }
to { background-position: 100% 0; }
}
body {
background-image: url(http://puu.sh/hzABm/3768f6abbb.png);
background-position: 0px 0px;
background-repeat: repeat-x;
animation: animatedBackground 40s linear infinite;
-webkit-animation: animatedBackground 40s linear infinite;
}
This code snippet is intended for the following HTML structure:
<body>
<div class="innercontent">
<p>This content is moving, why?</p>
</div>
</body>
The goal is to animate a cloud background in the body of the page, but there seems to be a problem where the entire page including text "This content is moving, why?" is also scrolling. How can I go about resolving this issue?