Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Jesse Zelaya
13,599 PointsW3C Validator Error with Animation Prefix
So I am building my own website and I wanted to make sure that there are no errors in my code. I have a simple animation that makes an image of an eye bounce. The animation works fine with chrome and safari. I've tested it on firefox and the animation doesn't work. The w3c css validator also states that the prefix I provided is not valid, "Sorry, the at-rule @-webkit-keyframes is not implemented"
The code I have is here:
CSS
#eye:hover {
-webkit-animation: bounce .75s ease-in-out;
}
@-webkit-keyframes bounce {
0% {-webkit-transform: translateY(0);}
35% {-webkit-transform: translateY(-40px);}
50% {-webkit-transform: translateY(0);}
70% {-webkit-transform: translateY(-25px);}
80% {-webkit-transform: translateY(0);}
90% {-webkit-transform: translateY(-5px);}
100% {-webkit-transform: translateY(0);}
}
Any ideas would be greatly appreciated.
1 Answer
Ken Alger
Treehouse TeacherJesse;
According to caniuse.com there is a known bug with Firefox and @keyframes. That may be the issue.
Ken
Jesse Zelaya
13,599 PointsJesse Zelaya
13,599 PointsHi Ken,
is this what you are referring to?:
"@keyframes not supported in an inline or scoped stylesheet in Firefox (bug 830056)"
Ken Alger
Treehouse TeacherKen Alger
Treehouse TeacherYup.
Jesse Zelaya
13,599 PointsJesse Zelaya
13,599 PointsGot it. Thanks!