Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Unused CSS Stages Transitions and Transforms Transitions - WebKit Only

Preet Dha
Preet Dha
6,709 Points

Why won't this code work?

I am using the following shorthand transition property but it will not pass the challenge. Can someone tell me what might be wrong?

.box {
    border-radius: 15px;
    background: #4682B4;
   -webkit-transition: border-radius 2s linear 1s;
 }

.box:hover {
    background: #F08080;
    border-radius: 50%; 
}

3 Answers

Jim Hill
Jim Hill
1,758 Points

Weird - that should be correct:

-webkit-transition: border-radius 2s linear 1s;

I just tried it and it worked. Did you click "check work"?

Preet Dha
Preet Dha
6,709 Points

I kept refreshing to test it out in the preview box, and the transition was not working. Must be a little buggy. I didn't bother to "check work" until your suggestion! Thanks Jim.

James Barnett
James Barnett
39,199 Points

Which browser were you using when doing this?