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

Can't figure out answer to "create transition for border-radius" problem.

Here's my code. I find this whole transition stuff incredibly complicated and hard to follow. Please help me. The test doesn't do a good job of providing the example answer, or guiding you in the right direction.

/* Complete the challenge by writing CSS below */

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

}

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

3 Answers

The error I see when pasting in your code is the following:

Bummer! Make sure your transition property is correct.

This is indicating that you are either missing the transition-property or it's not set to the right value.

That's the only thing missing from your code. You never specified that the transition should be applied to the border-radius.

Here's the transition code with the missing property:

-webkit-transition-property: border-radius;
-webkit-transition-duration: 2s;
-webkit-transition-timing-function: linear;
-webkit-transition-delay: 1s;

Alternatively, you can use the shorthand transition property and specify everything on one line.

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

The duration timing needs to come before the delay timing.

Karen de Graaf
Karen de Graaf
14,350 Points

You are missing a line of code, one that is specifying to what you want to apply the transition

Excellent. Thank you so much for the help.