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 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?