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

CSS

Not Working in Firefox

Even though the lesson says it does....this animation is not working in firefox

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: -webkit-repeating-linear-gradient(-45deg, rgba(255,255,255,.1), rgba(255,255,255,0) 12px), -webkit-linear-gradient(#F5A8A8, #F08080);

    -webkit-animation-name: slide;
    -moz-animation-name: slide;
    -o-animation-name: slide;
    animation-name: slide;

    -webkit-animation-duration: 2s;
    -moz-animation-duration: 2s;
    -o-animation-duration: 2s;
    animation-duration: 2s;

    -webkit-animation-timing-function: linear;
    -moz-animation-timing-function: linear;
    -o-animation-timing-function: linear;
    animation-timing-function: linear;
} 

/*  Keyframes
------------------------------------------ */

@-webkit-keyframes slide {
    0%   { width:   0%; }
    30%, 
    60%  { width:  50%; }
    70%  { width:  80%; }
    100% { width: 100%; }
}
@-moz-keyframes slide {
    0%   { width:   0%; }
    30%, 
    60%  { width:  50%; }
    70%  { width:  80%; }
    100% { width: 100%; }
}
@-o-keyframes slide {
    0%   { width:   0%; }
    30%, 
    60%  { width:  50%; }
    70%  { width:  80%; }
    100% { width: 100%; }
}
@keyframes slide {
    0%   { width:   0%; }
    30%, 
    60%  { width:  50%; }
    70%  { width:  80%; }
    100% { width: 100%; }
}

any comments??

2 Answers

Hey Douglas, those are WebKit examples. Check out the teacher's notes. It looks like Firefox only has partial support for CSS animations.

I think your right, but the instructor tells us to use -moz- prefix and so forth, go figure.

Thanks.