this is interesting as I can't really find anything on the web really to do with why my code throws a parsing error. The code below shows i have a media query that basically changes a few elements and their properties.
When i validate this code it throws a parsing error because of the swim animation, when i remove this animation and re-validate the code it passes without any problems.
Can this be fixed or just something that can be ignored :) ?
@media (max-width: 1325px) {
#chapter-one-background, #chapter-two-background, #chapter-three-background {
height: 450px; }
#sound-button {
width: 21px; }
.buttonCenter {
padding: 50px 0px 20px 0px;}
html {
font-size: 1em; }
h1 {
font-size: 3em; }
h2 {
font-size: 2.027em; }
h3 {
font-size: 1.199em; }
h4 {
font-size: 1em; }
.button-wrapper {
padding-top: 50px; }
.button-wrapper .buttons img {
max-width: 90%; }
.exchange-list img {
max-width: 20%; }
.exchange-list .list-float-right {
width: 230px; }
.article-center {
width: 300px; }
.article-info {
width: 350px; }
.article-info img:last-child {
width: 100%; }
#cloud-background {
padding: 2% 2% 4% 2%; }
.article-center-video {
width: 400px; }
.article-center-video .article-info-video {
width: 400px; }
.eyes-container {
margin-top: 280px; }
.sun {
top: -300px; }
#cowhead1 {
top: 100px;
left: 100px; }
#cowhead1 img {
width: 90px; }
#hands-behind-left {
height: 663px; }
#chapter-four-background-left {
height: 663px; }
#cowhead2 {
top: 100px;
left: 180px; }
#cowhead2 img {
width: 90px; }
#info2-chapter3 {
padding-top: 80px; }
#exchange-chapter3 {
padding-top: 90px;
left: 15%; }
#info1-chapter3 {
padding-top: 110px; }
#chapter-four-background-right {
width: 250px; }
@keyframes swim {
0% {
-webkit-transform: translateX(0px);
-moz-transform: translateX(0px);
-ms-transform: translateX(0px);
-o-transform: translateX(0px);
transform: translateX(0px); }
50% {
-webkit-transform: translateX(500px);
-moz-transform: translateX(500px);
-ms-transform: translateX(500px);
-o-transform: translateX(500px);
transform: translateX(500px); }
100% {
-webkit-transform: translateX(1000px);
-moz-transform: translateX(1000px);
-ms-transform: translateX(1000px);
-o-transform: translateX(1000px);
transform: translateX(1000px); } } }
animationproperty inside the media query and keep the keframes rules outside