I'm creating some transition in my stylesheet, and I have this css, but when I validate it here, I get warnings concerning the syntax.
The css is this:
a:after {
content: '';
height: 2px;
margin: 0 auto;
display: block;
position: relative;
background: #b8d5e5;
opacity: 0;
transition: opacity .25s, -webkit-transform .25s;
transition: opacity .25s, transform .25s;
-webkit-transform: translateY(10px);
-ms-transform: translateY(10px);
transform: translateY(10px);
}
a:hover:after {
opacity: 1;
transition: opacity .25s, -webkit-transform .25s;
transition: opacity .25s, transform .25s;
-webkit-transform: translateY(2px);
-ms-transform: translateY(2px);
transform: translateY(2px);
}
It seems to work fine - at least in Chrome, but what do I need to change in order to fix the syntax?