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

Levi Zortman
Levi Zortman
5,593 Points

I am stuck on adding transition property to border-radius. What am I doing wrong?

.box {
    border-radius: 15px;
    background: #4682B4;
 }

.box:hover {
    background: #F08080;
    border-radius: 50%;
  transition-property: border-radius;
  transition-duration: 2s;
  transition-delay: 1s;
  transition-timing-function: linear;  
}

Oh wait! Webkit prefix!

Edit: Nope. That didn't do it either. The challenge keeps failing me but the preview seems to be behaving as expected.

1 Answer

Sage Elliott
Sage Elliott
30,003 Points

Hello, Levi. If you add the webkit prefixes looks like you have the right code! but the challenge is asking for in in the .box selector. Not the hover pseudo class. Try moving it like below:

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

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

}
Levi Zortman
Levi Zortman
5,593 Points

Yes thank you. I finally figured it out just before getting this notification. I first had it in the right spot sans the webkit prefix and then I had the prefix but had it under the incorrect selector. For some reason it makes more sense to me to identify the transition rules under the hover state pseudo class. But I got it now. Thanks.