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 Unused CSS Stages CSS Animations Keyframe Rules and Animation Properties

what is the wrong

@charset "utf-8";
/* CSS Document */
.box{
border-radius: 10px;
height:70px;    

-webkit-animation-name: slide;
    -webkit-animation-duration: 2s;    

}


.wrap {
box-sizing: border-box;    
 width: 600px;
border-radius: 10px;
    margin:300px auto;
    box-shadow:  0px 0px 3px  black;
    padding: 15px;
    background: -webkit-linear-gradient(-45deg, red,blue);

}
@-webkit-keyframes slide {

from {width: 0%;}
to   {width: 100%;} 

}
Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hi Mohamed, I fixed up your code for you so we can see it a little better. Check out the Markdown Cheatsheet link below, to see how to format code in the forums.

Which browser are you using?

If you're trying this in Firefox or Internet Explorer, (possibly even Chrome) it won't work because of the "-webkit" animation prefix.

Safari is the only browser that truly now supports the "-webkit" prefix. Most Chrome properties are now unprefixed or at very least the "-webkit" is deprecated, since it moved to the Blink engine.

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Mohammed,

We really need more information to go on. What is wrong doesn't really give us a clue about the issue your having.