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 trialSharina V. Jones
11,459 PointsFireFox prefix extensions
Hi all,
I'm using Firefox 25 on my computer. I'm trying to using the keyframe animations but I can't get them to work.
I've tried adding the -moz prefix to the repeating-linear-gradient, animation-name, and animation duration properties, as well as the @keyframe property but all I get is a screen with a blank box. Please help.
Here's my code:
body {
background: #303030;
font: 1.1em sans-serif;
}
.wrap {
box-sizing: border-box;
margin: 70px auto;
padding: 5px;
width: 600px;
border-radius: 10px;
background: #222;
box-shadow: inset 0 0 1px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.1);
}
.prog-bar {
height: 60px;
border-radius: 5px;
background: -moz-repeating-linear-gradient(-45deg, rgba(255,255,255,.1), rgba(255,255,255,0) 12px), -webkit-linear-gradient(#F5A8A8, #F08080);
-moz-animation-name: slide;
-moz-animation-duration: 2s;
}
/* Keyframes
------------------------------------------ */
@-moz-keyframe slide {
from {width: 0%;}
to {width: 100%;}
}
6 Answers
David Tonge
Courses Plus Student 45,640 PointsI fixed it for you. You start with CSS added but end with only the backticks to close. Still close though!
David Tonge
Courses Plus Student 45,640 Pointsno prob
Sharina V. Jones
11,459 PointsAnd I figured it out. I forgot to add the prefix to the other gradient in the background property.
David Tonge
Courses Plus Student 45,640 PointsYou're on the right track to get your code to show up in the question, but you're just missing the CSS part. (```CSS) <--without the parentheses
Sharina V. Jones
11,459 PointsNo dice :/
Sharina V. Jones
11,459 PointsThank you!