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.